gnu: python-pytest-astropy: Adjust inputs.

* gnu/packages/python-check.scm (python-pytest-astropy)[arguments]: Add new
phase to skip a version check bug.
[native-inputs]: Remove python-pytest. Move python-hypothesis,
python-pytest-arraydiff, python-pytest-astropy-header, python-pytest-cov,
python-pytest-filter-subpackage, python-pytest-openfiles,
python-pytest-remotedata to ...
[propagated-inputs]: ... here.

Signed-off-by: Efraim Flashner <efraim@flashner.co.il>
This commit is contained in:
Vinicius Monego 2021-10-30 02:51:31 +00:00 committed by Efraim Flashner
parent 56dcaff827
commit 27b0e71ecd
No known key found for this signature in database
GPG key ID: 41AAE7DCCA3D8351

View file

@ -341,21 +341,28 @@ Astropy project, but is optimized for use with astropy-related projects.")
(base32 "18j6z6y2fvykmcs5z0mldhhaxxn6wzpnhlm2ps7m8r5z5kmh1631")))) (base32 "18j6z6y2fvykmcs5z0mldhhaxxn6wzpnhlm2ps7m8r5z5kmh1631"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
;; No tests provided `(#:tests? #f ; there are no tests
'(#:tests? #f)) #:phases
(modify-phases %standard-phases
;; There is a bug somewhere that makes pytest-filter-subpackage appear
;; as version 0.0.0 to setup.py. Remove it from the requirements.
(add-after 'unpack 'remove-requirement
(lambda _
(substitute* "setup.cfg"
((".*pytest-filter-subpackage.*") "")))))))
(native-inputs (native-inputs
`(("attrs" ,python-attrs) `(("python-attrs" ,python-attrs)
("hypothesis" ,python-hypothesis) ("python-pytest-mock" ,python-pytest-mock)
("pytest" ,python-pytest) ("python-setuptools-scm" ,python-setuptools-scm)))
("pytest-arraydiff" ,python-pytest-arraydiff) (propagated-inputs
("pytest-astropy-header" ,python-pytest-astropy-header) `(("python-hypothesis" ,python-hypothesis)
("pytest-cov" ,python-pytest-cov) ("python-pytest-arraydiff" ,python-pytest-arraydiff)
("pytest-doctestplus" ,python-pytest-doctestplus) ("python-pytest-astropy-header" ,python-pytest-astropy-header)
("pytest-filter-subpackage" ,python-pytest-filter-subpackage) ("python-pytest-cov" ,python-pytest-cov)
("pytest-mock" ,python-pytest-mock) ("python-pytest-doctestplus" ,python-pytest-doctestplus)
("pytest-openfiles" ,python-pytest-openfiles) ("python-pytest-filter-subpackage" ,python-pytest-filter-subpackage)
("pytest-remotedata" ,python-pytest-remotedata) ("python-pytest-openfiles" ,python-pytest-openfiles)
("setuptools-scm" ,python-setuptools-scm))) ("python-pytest-remotedata" ,python-pytest-remotedata)))
(home-page "https://github.com/astropy/pytest-astropy") (home-page "https://github.com/astropy/pytest-astropy")
(synopsis (synopsis
"Metapackage for all the testing machinery used by the Astropy Project") "Metapackage for all the testing machinery used by the Astropy Project")