[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#72219] [PATCH 25/34] gnu: Add python-dunamai.
From: |
Sharlatan Hellseher |
Subject: |
[bug#72219] [PATCH 25/34] gnu: Add python-dunamai. |
Date: |
Sat, 20 Jul 2024 23:40:48 +0100 |
* gnu/packages/python-xyz.scm (python-dunamai): New variable.
Change-Id: Iabb0221c615ee345d1e557d2d428254929823283
---
gnu/packages/python-xyz.scm | 41 +++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 7ef8488bfc..195437c72d 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -23435,6 +23435,47 @@ (define-public python-dulwich
;; Can be used with either license.
(license (list license:asl2.0 license:gpl2+))))
+(define-public python-dunamai
+ (package
+ (name "python-dunamai")
+ (version "1.21.2")
+ (source
+ (origin
+ (method url-fetch)
+ (uri (pypi-uri "dunamai" version))
+ (sha256
+ (base32 "1i35i8ym6n8mpgrq31hivrvfciy12gv26jwlzimmkx9jy2spz0h5"))))
+ (build-system pyproject-build-system)
+ (arguments
+ (list
+ #:test-flags
+ #~(list "-k" "not test__version__from_git__shallow")
+ #:phases
+ #~(modify-phases %standard-phases
+ ;; These steps are taked from NixOS package definition:
+ ;; nixpkgs/pkgs/development/python-modules/dunamai/default.nix
+ (add-before 'check 'pre-check
+ (lambda _
+ (setenv "PATH" (string-append #$output "/bin:" (getenv "PATH")))
+ (setenv "HOME" "/tmp")
+ (invoke "git" "config" "--global" "user.email"
"nobody@example.com")
+ (invoke "git" "config" "--global" "user.name" "Nobody"))))))
+ (propagated-inputs
+ (list python-packaging))
+ (native-inputs
+ (list git-minimal
+ python-poetry-core
+ python-pytest))
+ (home-page "https://github.com/mtkennerly/dunamai")
+ (synopsis "Dynamic version generation")
+ (description
+ "Dunamai is Python library and command line tool for producing dynamic,
+standards-compliant version strings, derived from tags in your version control
+system. This facilitates uniquely identifying nightly or per-commit builds in
+continuous integration and releasing new versions of your software simply by
+creating a tag.")
+ (license license:expat)))
+
(define-public python-pbkdf2
(package
(name "python-pbkdf2")
--
2.41.0
- [bug#72219] [PATCH 26/34] gnu: Add python-poetry-dynamic-versioning., (continued)
- [bug#72219] [PATCH 26/34] gnu: Add python-poetry-dynamic-versioning., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 32/34] gnu: Add python-glue-core., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 09/34] gnu: python-astropy-iers-data: Update to 0.2024.7.15.0.31.42., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 13/34] gnu: python-jwst: Update to 1.15.1., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 30/34] gnu: Add python-echo., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 22/34] gnu: python-sunpy: Update to 5.1.5., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 24/34] gnu: python-fast-histogram: Adjust inputs., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 28/34] gnu: Add python-ads., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 10/34] gnu: python-crds: Update to 11.17.26., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 27/34] gnu: Add python-kanon., Sharlatan Hellseher, 2024/07/20
- [bug#72219] [PATCH 25/34] gnu: Add python-dunamai.,
Sharlatan Hellseher <=
- [bug#72219] [PATCH 33/34] gnu: Add python-looseversion., Sharlatan Hellseher, 2024/07/20
- bug#72219: [PATCH 00/34] Astronomy update 2024/07, Sharlatan Hellseher, 2024/07/30