diff options
| author | Cayetano Santos <csantosb@inventati.org> | 2026-07-04 19:28:48 +0200 |
|---|---|---|
| committer | Cayetano Santos <csantosb@inventati.org> | 2026-07-04 19:48:12 +0200 |
| commit | 8afac1d4b0ad1e225cd56c52ad8fd7cbc61b82f3 (patch) | |
| tree | 495aaea8e2cdcf4b65187085cd4d1f756b10b3ea /gnu | |
| parent | e71f45a7da3d9b556f7171ba3d88a9dea531340f (diff) | |
gnu: Add python-aenum.
* gnu/packages/python-xyz.scm (python-aenum): New variable.
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 7bdfaece715..0fd440b53ae 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -335,6 +335,43 @@ | |||
| 335 | #:use-module (srfi srfi-1) | 335 | #:use-module (srfi srfi-1) |
| 336 | #:use-module (srfi srfi-26)) | 336 | #:use-module (srfi srfi-26)) |
| 337 | 337 | ||
| 338 | (define-public python-aenum | ||
| 339 | (package | ||
| 340 | (name "python-aenum") | ||
| 341 | (version "3.1.17") | ||
| 342 | (source | ||
| 343 | (origin | ||
| 344 | (method git-fetch) | ||
| 345 | (uri (git-reference | ||
| 346 | (url "https://github.com/ethanfurman/aenum") | ||
| 347 | (commit version))) | ||
| 348 | (file-name (git-file-name name version)) | ||
| 349 | (sha256 | ||
| 350 | (base32 "0nygn64ydkvlpz9hw1f26z8w1dk7bws8qsirwkxyfw99vpbzlz3v")))) | ||
| 351 | (build-system pyproject-build-system) | ||
| 352 | (arguments | ||
| 353 | (list | ||
| 354 | #:phases | ||
| 355 | #~(modify-phases %standard-phases | ||
| 356 | (add-after 'unpack 'fix | ||
| 357 | (lambda _ | ||
| 358 | (substitute* "aenum/_py2.py" | ||
| 359 | (("raise exc.*") | ||
| 360 | "raise exc.with_traceback(tb)"))))) | ||
| 361 | #:tests? #f)) ;no tests | ||
| 362 | (native-inputs (list python-setuptools)) | ||
| 363 | (home-page "https://github.com/ethanfurman/aenum") | ||
| 364 | (synopsis | ||
| 365 | "Support for advanced enumerations, namedtuples and namedconstants") | ||
| 366 | (description | ||
| 367 | "AEnum is a set of symbolic names (members) bound to unique, constant | ||
| 368 | values. Within an enumeration, the members can be compared by identity, and | ||
| 369 | the enumeration itself can be iterated over. There is built-in support for | ||
| 370 | unique values, multiple values, auto-numbering, and suspension of aliasing | ||
| 371 | (members with the same value are not identical), plus the ability to have | ||
| 372 | values automatically bound to attributes.") | ||
| 373 | (license license:bsd-3))) | ||
| 374 | |||
| 338 | (define-public python-accumulation-tree | 375 | (define-public python-accumulation-tree |
| 339 | ;; Only minor releases (0.x) are tagged, not patch versions. | 376 | ;; Only minor releases (0.x) are tagged, not patch versions. |
| 340 | (let ((commit "3617051f952ce12385c015be8e3d052d1883f17a") | 377 | (let ((commit "3617051f952ce12385c015be8e3d052d1883f17a") |
