aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2024-05-06 22:54:33 +0200
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:18:40 +0000
commite2fa7547502ee481040bb3b1a628948bd6dba39d (patch)
tree2f9163cc0f01adfb2acbe75bf07fbb1ed1fc5ad3
parent1ced46f4f7e0b0a7bbca379497a5afe3007cb75c (diff)
downloadguix-e2fa7547502ee481040bb3b1a628948bd6dba39d.tar.gz
guix-e2fa7547502ee481040bb3b1a628948bd6dba39d.zip
gnu: python-nbformat: Update to 5.10.4.
* gnu/packages/python-xyz.scm (python-nbformat): Update to 5.10.4. [build-system]: Use pyproject-build-system. [arguments]: Remove custom 'check phase; add 'patch-pyproject phase. [native-inputs]: Add python-hatchling and python-pep440. Change-Id: I259413d51ff7cbca3052f2657eb89f806b3ea559
-rw-r--r--gnu/packages/python-xyz.scm28
1 files changed, 17 insertions, 11 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 885dae8a6b..957b5882f0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -17837,30 +17837,36 @@ drafts 04, 06 and 07.")
(define-public python-nbformat
(package
(name "python-nbformat")
- (version "5.3.0")
+ (version "5.10.4")
;; The PyPi release tarball lacks some test cases and test data.
(source (origin
(method git-fetch)
(uri (git-reference
(url "https://github.com/jupyter/nbformat")
- (commit version)))
+ (commit (string-append "v" version))))
(sha256
(base32
- "114c5c6cvpxhxj8zrw74351gcfzyzjh1jq3py4xf8wk9rahfay9z"))
+ "0abd1d8iq21dwh17m72na2f3kr6a5p6ji1gnykf06jshikalj2x3"))
(file-name (git-file-name name version))))
- (build-system python-build-system)
+ (build-system pyproject-build-system)
(arguments
- `(#:phases
- (modify-phases %standard-phases
- (replace 'check
- (lambda* (#:key inputs outputs tests? #:allow-other-keys)
- (when tests?
- (invoke "pytest" "-vv")))))))
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; We don't want to use hatch-nodejs just to get a version string.
+ (add-after 'unpack 'patch-pyproject
+ (lambda _
+ (substitute* "pyproject.toml"
+ ((", \"hatch-nodejs-version\"") "")
+ (("dynamic = \\[\"version\"\\]")
+ (string-append "version = \"" #$version "\""))))))))
(propagated-inputs
(list python-fastjsonschema python-jsonschema python-jupyter-core
python-traitlets))
(native-inputs
- (list python-pytest
+ (list python-hatchling
+ python-pep440
+ python-pytest
python-testpath))
(home-page "https://jupyter.org")
(synopsis "Jupyter Notebook format")