summaryrefslogtreecommitdiff
path: root/gnu/packages/python-xyz.scm
diff options
context:
space:
mode:
authorNicolas Graves <ngraves@ngraves.fr>2025-08-25 08:01:38 +0200
committerjgart <jgart@dismail.de>2025-08-26 09:30:01 -0500
commitedd6befe5e720fce9466a04ddd6c34bbf9a7c688 (patch)
tree32e212551769874778698f89bd3cc9bb199a1e99 /gnu/packages/python-xyz.scm
parente140cf22d09436aff2d11716e2d24cdd8804dce3 (diff)
gnu: python-plumbum: Switch to pyproject.
* gnu/packages/python-xyz.scm (python-plumbum): [source]: Switch to git-fetch. [build-system]: Switch to pyproject-build-system. [arguments]<#:test-flags>: Ignore problematic tests (requiring $HOME, tty, sudo or ssh). <#:phases>: Add phase 'set-version. [native-inputs]: Add procps, python-psutil, python-pytest-cov, python-setuptools, python-setuptools-scm, python-wheel. Signed-off-by: jgart <jgart@dismail.de>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
-rw-r--r--gnu/packages/python-xyz.scm38
1 files changed, 30 insertions, 8 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index dcc456524b..a0b1e97bd6 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -20690,17 +20690,39 @@ library as well as on the command line.")
(version "1.7.0")
(source
(origin
- (method url-fetch)
- (uri (pypi-uri "plumbum" version))
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/tomerfiliba/plumbum")
+ (commit (string-append "v" version))))
+ (file-name (git-file-name name version))
(sha256
- (base32 "1kidj821k79dw064rlxh84xamb9h79ychg3pgj81jlvm5hs48xri"))))
- (build-system python-build-system)
+ (base32 "1vlaiz4bwgrcay51knj6a20lh3lwihjqxhxhdk6nqkn9ijg0hc81"))))
+ (build-system pyproject-build-system)
(arguments
- `(#:tests? #f)) ;no tests
+ (list
+ #:test-flags
+ #~(list "--ignore=tests/test_remote.py"
+ "--ignore=tests/test_putty.py"
+ "--ignore=tests/test_sudo.py"
+ "-k"
+ (string-join (list "not test_home"
+ "test_iter_lines_error"
+ "test_quoting"
+ "test_copy_move_delete")
+ " and not "))
+ #:phases
+ #~(modify-phases %standard-phases
+ (add-before 'build 'set-version
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))))))
(native-inputs
- ;; XXX: Not actually used since there are no tests but required for
- ;; build.
- (list python-pytest))
+ (list procps
+ python-psutil
+ python-pytest
+ python-pytest-cov
+ python-setuptools
+ python-setuptools-scm
+ python-wheel))
(home-page "https://plumbum.readthedocs.io")
(synopsis "Python shell combinators library")
(description