gnu: python-numpydoc: Update to 1.2.1.

* gnu/packages/python-xyz.scm (python-numpydoc): Update to 1.2.1.  Fix
indentation.
[phases]{relax-requirements}: New phase.
[propagated-inputs]: Add python-jinja2.
This commit is contained in:
Maxim Cournoyer 2022-04-21 15:53:03 -04:00
parent 418630a63c
commit a7e5a116fd
No known key found for this signature in database
GPG key ID: 1260E46482E63562

View file

@ -6438,34 +6438,34 @@ (define-public python-patch-ng
(define-public python-numpydoc (define-public python-numpydoc
(package (package
(name "python-numpydoc") (name "python-numpydoc")
(version "1.1.0") (version "1.2.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "numpydoc" version)) (uri (pypi-uri "numpydoc" version))
(sha256 (sha256
(base32 (base32
"13j4fvy2p7lc8sn00sxvs0jb19vicaznfgx4cphv9jgxgz5xcvy3")))) "1xjsli2fqks4iv3524v1d329siad7bbsi4kr174zvhsl1pnjds3w"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:phases `(#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'relax-requirements
(lambda _
(substitute* "setup.py"
(("'Jinja2>=2.10,<3.1'")
"'Jinja2>=2.10'"))))
(replace 'check (replace 'check
(lambda* (#:key tests? inputs outputs #:allow-other-keys) (lambda* (#:key tests? #:allow-other-keys)
(when tests? (when tests?
(add-installed-pythonpath inputs outputs)
(invoke "pytest" "-v" "numpydoc/tests" (invoke "pytest" "-v" "numpydoc/tests"
;; TODO: unclear why these fail. ;; TODO: unclear why these fail.
"-k" "not test_MyClass and not test_my_function"))))))) "-k" "not test_MyClass and not test_my_function")))))))
(propagated-inputs (propagated-inputs (list python-jinja2 python-sphinx))
(list python-sphinx)) (native-inputs (list python-matplotlib python-pytest python-pytest-cov))
(native-inputs
(list python-matplotlib python-pytest python-pytest-cov))
(home-page "https://pypi.org/project/numpydoc/") (home-page "https://pypi.org/project/numpydoc/")
(synopsis (synopsis "Numpy's Sphinx extensions")
"Numpy's Sphinx extensions") (description "Sphinx extension to support docstrings in Numpy format.")
(description
"Sphinx extension to support docstrings in Numpy format.")
(license license:bsd-2) (license license:bsd-2)
(properties `((python2-variant . ,(delay python2-numpydoc)))))) (properties `((python2-variant . ,(delay python2-numpydoc))))))