diff options
author | Nicolas Graves <ngraves@ngraves.fr> | 2025-04-06 14:37:11 +0200 |
---|---|---|
committer | Andreas Enge <andreas@enge.fr> | 2025-04-16 11:46:31 +0200 |
commit | b26969865fd6141cbf608753db8c8abe3e7cbfc0 (patch) | |
tree | af6ec693a7738ec07ae93b47d35537ea983c45c3 | |
parent | 4056a5eb3b6fb613785d14fbef2c233fa426ad27 (diff) | |
download | guix-b26969865fd6141cbf608753db8c8abe3e7cbfc0.tar.gz guix-b26969865fd6141cbf608753db8c8abe3e7cbfc0.zip |
gnu: python-flufl-lock: Update to 8.1.0.
* gnu/packages/python-xyz.scm (python-flufl-lock): Update to 8.1.0.
[build-system]: Switch to pyproject.
[arguments]{test-flags}: Ignore docs and coverage tests.
{phases}: Add phase 'add-custom-dist-info.
[native-inputs]: Add python-hatchling, python-pytest,
python-pytest-cov, python-sybil.
Change-Id: I11b115a054d7e59aa19b72cd8c375a19dabffc71
Signed-off-by: Steve George <steve@futurile.net>
-rw-r--r-- | gnu/packages/python-xyz.scm | 31 |
1 files changed, 27 insertions, 4 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 62ffb1ea81..893326775b 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -34774,15 +34774,38 @@ different tasks.") (define-public python-flufl-lock (package (name "python-flufl-lock") - (version "4.0") + (version "8.1.0") (source (origin (method url-fetch) (uri (pypi-uri "flufl.lock" version)) (sha256 - (base32 - "055941zyma3wfx25jhm8wcsghpv3jc3iwi1gdrdjhzcnfhn62lxq")))) - (build-system python-build-system) + (base32 "1jz7vipjga4x803gfsb9mvnfb6q8my7ib000nsc3v9ljaq0050yq")))) + (build-system pyproject-build-system) + (arguments + (list #:test-flags + #~(list "--no-cov" "--ignore-glob=docs/*") + #:phases + #~(modify-phases %standard-phases + ;; This phase add a symlink of dist-info dir for packages + ;; expecting flufl.lock rather than flufl_lock (mailman). + (add-after 'install 'add-custom-dist-info + (lambda _ + (for-each + (lambda (dir) + (with-directory-excursion (dirname dir) + (let ((base (basename dir))) + (symlink base + (string-join (string-split base #\_) "."))))) + (find-files #$output + (lambda (file stat) + (string-suffix? ".dist-info" file)) + #:directories? #t))))))) + (native-inputs + (list python-hatchling + python-pytest + python-pytest-cov + python-sybil)) (propagated-inputs (list python-atpublic python-psutil)) (home-page "https://flufllock.readthedocs.io") |