gnu: python-graphql-relay: Enable tests.

* gnu/packages/python-xyz.scm (python-graphql-relay)[arguments]: Use
custom 'check phase.
[native-inputs]: Add python-pytest, python-pytest-asyncio.
This commit is contained in:
Efraim Flashner 2021-09-27 08:57:15 +03:00
parent e187ce20d2
commit 8e220c2332
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -16111,7 +16111,16 @@ (define-public python-graphql-relay
"1d70vwam9gjhx7fqzsa03x7lc6ivcqki5r9pk8m7rslmb7pagmbh"))))
(build-system python-build-system)
(arguments
'(#:tests? #f)) ; The tests are not distributed
'(#:phases
(modify-phases %standard-phases
(replace 'check
(lambda* (#:key tests? #:allow-other-keys)
(when tests?
(invoke "pytest" "tests")))))))
(native-inputs
(list
python-pytest
python-pytest-asyncio))
(propagated-inputs
`(("python-graphql-core" ,python-graphql-core)))
(home-page "https://github.com/graphql-python/graphql-relay-py")