diff options
author | Vinicius Monego <monego@posteo.net> | 2025-07-30 08:35:46 -0300 |
---|---|---|
committer | Vinicius Monego <monego@posteo.net> | 2025-08-02 09:15:49 -0300 |
commit | f10da5043b6ed7bdabaf21d7562991550f4154e3 (patch) | |
tree | 0f016a5c2e59b5c3936641499203f212033b18ea /gnu | |
parent | 15c2b47df7c4049185c10047055f3542b5826c2f (diff) |
gnu: python-bagit: Update to 1.9.0.
* gnu/packages/python-xyz.scm (python-bagit): Update to 1.9.0.
[source]: Fetch from GitHub.
[build-system]: Use pyproject-build-system.
[arguments]<#:phases>: Add phase 'pretend-version' after
'unpack'. Override the 'check' phase and run the test file manually.
[native-inputs]: Remove python-coverage, python-mock. Add
python-pytest, python-setuptools, python-wheel.
Change-Id: I9db21f4ab290ac426710b426d30be884f7c47c9a
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/python-xyz.scm | 26 |
1 files changed, 20 insertions, 6 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 941beee8f6..6453abe2c8 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -26978,17 +26978,31 @@ in pure Python.") (define-public python-bagit (package (name "python-bagit") - (version "1.7.0") + (version "1.9.0") (source (origin - (method url-fetch) - (uri (pypi-uri "bagit" version)) + (method git-fetch) ; no tests in PyPI + (uri (git-reference + (url "https://github.com/LibraryOfCongress/bagit-python") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) (sha256 (base32 - "1m6y04qmig0b5hzb35lnaw3d2yfydb7alyr1579yblvgs3da6j7j")))) - (build-system python-build-system) + "12qfqha70vhc8pclq0kzv7xk0i44ramnlkphybv7419vdl4aay40")))) + (build-system pyproject-build-system) + (arguments + (list #:phases + #~(modify-phases %standard-phases + (add-before 'build 'pretend-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" + #$(package-version this-package)))) + (replace 'check + (lambda* (#:key tests? #:allow-other-keys) + (when tests? + (invoke "pytest" "-vv" "test.py"))))))) (native-inputs - (list python-setuptools-scm python-coverage python-mock)) + (list python-pytest python-setuptools python-setuptools-scm python-wheel)) (home-page "https://libraryofcongress.github.io/bagit-python/") (synopsis "Create and validate BagIt packages") (description "Bagit is a Python library and command line utility for working |