[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
67/145: gnu: python-platformdirs: Update to 2.4.0, run tests and fix met
From: |
guix-commits |
Subject: |
67/145: gnu: python-platformdirs: Update to 2.4.0, run tests and fix metadata. |
Date: |
Mon, 10 Jan 2022 11:44:10 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit 80cf2e64b16a3ec33927c5378aade7ac2c384c81
Author: Maxim Cournoyer <maxim.cournoyer@gmail.com>
AuthorDate: Mon Dec 20 15:13:47 2021 -0500
gnu: python-platformdirs: Update to 2.4.0, run tests and fix metadata.
* gnu/packages/python-xyz.scm (python-platformdirs): Update to 2.4.0.
[phases]{pretend-version}: New phase.
{check}: Override to run tests.
[native-inputs]{python-setuptools-scm}: New input.
---
gnu/packages/python-xyz.scm | 19 ++++++++++++++++---
1 file changed, 16 insertions(+), 3 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7e8db5163a..aa89cc47b1 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27500,17 +27500,30 @@ compatible with a wide range of versions of the
Stripe API.")
(define-public python-platformdirs
(package
(name "python-platformdirs")
- (version "2.2.0")
+ (version "2.4.0")
(source
(origin
(method url-fetch)
(uri (pypi-uri "platformdirs" version))
(sha256
- (base32 "07hq5qrp7pqj63iczg01wbf5ii6f0ncd0dq5mzkdhsslmg9slbb3"))))
+ (base32 "1whycrymqpsl7nsaknmcybzyh4fg4kqk6vd7zwl28kfhnf05wyin"))))
(build-system python-build-system)
+ (arguments
+ `(#:phases
+ (modify-phases %standard-phases
+ (add-before 'build 'pretend-version
+ ;; The version string is usually derived via setuptools-scm, but
+ ;; without the git metadata available, the version string is set to
+ ;; '0.0.0'.
+ (lambda _
+ (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" ,version)))
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (invoke "pytest")))))))
(native-inputs
(list python-appdirs python-pytest python-pytest-cov
- python-pytest-mock))
+ python-pytest-mock python-setuptools-scm))
(home-page "https://github.com/platformdirs/platformdirs")
(synopsis "Determine the appropriate platform-specific directories")
(description "When writing applications, finding the right location to
- 77/145: gnu: webkitgtk: Add a note about plugins in description., (continued)
- 77/145: gnu: webkitgtk: Add a note about plugins in description., guix-commits, 2022/01/10
- 133/145: gnu: Add rust-concolor-query., guix-commits, 2022/01/10
- 96/145: gnu: emacs: Remove obsolete phase., guix-commits, 2022/01/10
- 99/145: gnu: go-github-com-docker-distribution: Remove obsolete phase., guix-commits, 2022/01/10
- 50/145: gnu: gusb: Add python to native inputs., guix-commits, 2022/01/10
- 53/145: gnu: dconf: Add python to native inputs., guix-commits, 2022/01/10
- 46/145: gnu: libxkbcommon: Add python to native inputs., guix-commits, 2022/01/10
- 127/145: gnu: simple-scan: Add python to native inputs., guix-commits, 2022/01/10
- 122/145: gnu: python-xlwt: Add comment about maintainership of the package., guix-commits, 2022/01/10
- 140/145: gnu: rav1e: Update to 0.5.1; also update rust-aom-sys to 0.3.0., guix-commits, 2022/01/10
- 67/145: gnu: python-platformdirs: Update to 2.4.0, run tests and fix metadata.,
guix-commits <=
- 83/145: gnu: python-beautifulsoup4: Update to 4.10.0., guix-commits, 2022/01/10
- 27/145: gnu: python-nose: Fix build., guix-commits, 2022/01/10
- 21/145: gnu: llvm-12: Use quasiquote, addressing TODO., guix-commits, 2022/01/10
- 37/145: gnu: shadow: Update to 4.9., guix-commits, 2022/01/10
- 51/145: gnu: gtk: Update to 4.4.1., guix-commits, 2022/01/10
- 72/145: gnu: Add zopfli., guix-commits, 2022/01/10
- 70/145: gnu: Add python-pyftpdlib., guix-commits, 2022/01/10
- 48/145: gnu: atkmm-2.28: Do not propagate two variants of glibmm., guix-commits, 2022/01/10
- 71/145: gnu: Add python-fs., guix-commits, 2022/01/10
- 57/145: gnu: python-typed-ast: Update to 1.5.1., guix-commits, 2022/01/10