gnu: python-nbformat: Update to 5.1.3.

* gnu/packages/python-xyz.scm (python-nbformat): Update to 5.1.3.
[arguments]: Remove to enable tests.
[native-inputs]: Add python-pytest.
[properties]: Add python2-variant.
(python2-nbformat): Keep at version 4.4.0; override version and source field.
This commit is contained in:
Ricardo Wurmus 2021-04-13 08:41:25 +02:00
parent f4af353cb2
commit 6b3872e871
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -10190,29 +10190,42 @@ (define-public python-debian
(define-public python-nbformat (define-public python-nbformat
(package (package
(name "python-nbformat") (name "python-nbformat")
(version "4.4.0") (version "5.1.3")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "nbformat" version)) (uri (pypi-uri "nbformat" version))
(sha256 (sha256
(base32 (base32
"00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp")))) "1j6idwsw59cslsssvlkg2bkfpvd6ri7kghbp14jwcw87sy57h5mm"))))
(build-system python-build-system) (build-system python-build-system)
(arguments `(#:tests? #f)) ; no test target
(propagated-inputs (propagated-inputs
`(("python-ipython-genutils" ,python-ipython-genutils) `(("python-ipython-genutils" ,python-ipython-genutils)
("python-jsonschema" ,python-jsonschema) ("python-jsonschema" ,python-jsonschema)
("python-jupyter-core" ,python-jupyter-core) ("python-jupyter-core" ,python-jupyter-core)
("python-traitlets" ,python-traitlets))) ("python-traitlets" ,python-traitlets)))
(native-inputs
`(("python-pytest" ,python-pytest)))
(home-page "https://jupyter.org") (home-page "https://jupyter.org")
(synopsis "Jupyter Notebook format") (synopsis "Jupyter Notebook format")
(description "This package provides the reference implementation of the (description "This package provides the reference implementation of the
Jupyter Notebook format and Python APIs for working with notebooks.") Jupyter Notebook format and Python APIs for working with notebooks.")
(properties `((python2-variant . ,(delay python2-nbformat))))
(license license:bsd-3))) (license license:bsd-3)))
(define-public python2-nbformat (define-public python2-nbformat
(package-with-python2 python-nbformat)) (let ((parent (package-with-python2
(strip-python2-variant python-nbformat))))
(package
(inherit parent)
(version "4.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "nbformat" version))
(sha256
(base32
"00nlf08h8yc4q73nphfvfhxrcnilaqanb8z0mdy6nxk0vzq4wjgp")))))))
(define-public python-bleach (define-public python-bleach
(package (package