[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
67/142: gnu: python-platformdirs: Update to 2.4.0, run tests and fix met
From: |
guix-commits |
Subject: |
67/142: gnu: python-platformdirs: Update to 2.4.0, run tests and fix metadata. |
Date: |
Mon, 10 Jan 2022 13:07:23 -0500 (EST) |
apteryx pushed a commit to branch version-1.4.0
in repository guix.
commit b9839ee1c57455c199964bfbb212659080982c66
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 4bb9046394..484f64a7d0 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -27499,17 +27499,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
- 114/142: gnu: glib: Update to 2.70.2., (continued)
- 114/142: gnu: glib: Update to 2.70.2., guix-commits, 2022/01/10
- 128/142: gnu: rust: Use rust-1.57.0., guix-commits, 2022/01/10
- 127/142: gnu: simple-scan: Add python to native inputs., guix-commits, 2022/01/10
- 126/142: gnu: gnome-calculator: Add python to native inputs., guix-commits, 2022/01/10
- 130/142: gnu: mozjs-78: Disable rust-simd to workaround a build failure., guix-commits, 2022/01/10
- 132/142: gnu: Add rust-concolor-query., guix-commits, 2022/01/10
- 138/142: gnu: rust: Do not generate doc., guix-commits, 2022/01/10
- 05/142: gnu: python-wheel: Update to 0.37.0., guix-commits, 2022/01/10
- 44/142: gnu: wayland: Add python to native inputs., guix-commits, 2022/01/10
- 56/142: gnu: gjs: Build with meson-0.59 to avoid 'install_dir' error., guix-commits, 2022/01/10
- 67/142: gnu: python-platformdirs: Update to 2.4.0, run tests and fix metadata.,
guix-commits <=
- 69/142: gnu: Add python-pysendfile., guix-commits, 2022/01/10
- 71/142: gnu: Add python-fs., guix-commits, 2022/01/10
- 88/142: gnu: Add plfit., guix-commits, 2022/01/10
- 94/142: gnu: clipper: Remove obsolete phase., guix-commits, 2022/01/10
- 96/142: gnu: emacs: Remove obsolete phase., guix-commits, 2022/01/10
- 109/142: gnu: go-github-com-prometheus-common: Remove obsolete phase., guix-commits, 2022/01/10
- 125/142: gnu: gnome-screenshot: Add python to native inputs., guix-commits, 2022/01/10
- 123/142: gnu: python-pandas: Update to 1.3.5., guix-commits, 2022/01/10
- 131/142: gnu: Add rust-cfg-expr-0.8., guix-commits, 2022/01/10
- 137/142: gnu: rav1e: Update to 0.5.1; also update rust-aom-sys to 0.3.0., guix-commits, 2022/01/10