aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSharlatan Hellseher <sharlatanus@gmail.com>2024-11-24 22:14:42 +0000
committerSharlatan Hellseher <sharlatanus@gmail.com>2024-12-13 20:23:31 +0000
commit4e1e9625a482c53ace15d10701b1a9ed2428e4a2 (patch)
treed2b0db247dbe2340b60bfb250dd20487a35659b8
parent8da6db1850824de7319a5945281b11628de3b619 (diff)
downloadguix-4e1e9625a482c53ace15d10701b1a9ed2428e4a2.tar.gz
guix-4e1e9625a482c53ace15d10701b1a9ed2428e4a2.zip
gnu: python-anytree: Update to 2.12.0.
* gnu/packages/python-xyz.scm (python-anytree): Update to 2.12.0. [source]: Swap to git checkout containing tests. [build-system]: Swap to pyproject-build-system. [arguments]<phases>: Add 'pre-check. [native-inputs]: Remove python-nose; add python-poetry-core and python-pytest. Change-Id: I5520d3824ad6c03bda1b213876277e289e802f4c
-rw-r--r--gnu/packages/python-xyz.scm35
1 files changed, 23 insertions, 12 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 4541aac3b2..c39aff453a 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -6999,20 +6999,31 @@ alternative representations which do not require this package.")
(define-public python-anytree
(package
(name "python-anytree")
- (version "2.8.0")
- (source (origin
- (method url-fetch)
- (uri (pypi-uri "anytree" version))
- (sha256
- (base32
- "1aycpc387wqz7h9w2p53qxn43qsh3m6by6ak4kkc66x9aprr63rz"))))
- (build-system python-build-system)
+ (version "2.12.0")
+ (source
+ (origin
+ (method git-fetch) ; no tests data in PyPi package
+ (uri (git-reference
+ (url "https://github.com/c0fec0de/anytree")
+ (commit version)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32 "0fagd6h6nixvzf3ps8pbfkxvp9xnpq8hpmzaaq1zab4dzqnpsrgj"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'check 'pre-check
+ (lambda _
+ ;; Tests need to write to that direcroty.
+ (mkdir-p "tests/dotexport/"))))))
+ (native-inputs
+ (list graphviz ;for 'dot'
+ python-poetry-core
+ python-pytest))
(propagated-inputs
(list python-six))
- (native-inputs
- (list ;; For tests.
- graphviz ;for 'dot'
- python-nose))
(home-page "https://github.com/c0fec0de/anytree")
(synopsis "Lightweight tree data library")
(description