diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-11-01 16:50:31 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2026-02-07 12:28:22 +0100 |
| commit | 3d169ca4463a9aabf288a411cc08b8fa6f8c17db (patch) | |
| tree | 5d9aca4ac0246b0a228519fb6294158923dde077 /gnu | |
| parent | aa8d1bb55ecc2fded97b45618d6f1148262997f0 (diff) | |
gnu: python-packaging: Move to (gnu packages python-build).
* gnu/packages/python-xyz.scm (python-packaging): Move from here ...
* gnu/packages/python-build.scm (python-packaging): ... to here.
Overwrite original python-packaging-bootstrap and swap inheritance.
Change-Id: If244d390b7ec3e526dccba28023f6f5350346f01
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/packages/python-build.scm | 24 | ||||
| -rw-r--r-- | gnu/packages/python-xyz.scm | 25 |
2 files changed, 18 insertions, 31 deletions
diff --git a/gnu/packages/python-build.scm b/gnu/packages/python-build.scm index 261b52a9d75..df66b1bafe3 100644 --- a/gnu/packages/python-build.scm +++ b/gnu/packages/python-build.scm | |||
| @@ -657,9 +657,9 @@ of regular expressions. The pyparsing module provides a library of classes | |||
| 657 | that client code uses to construct the grammar directly in Python code.") | 657 | that client code uses to construct the grammar directly in Python code.") |
| 658 | (license license:expat))) | 658 | (license license:expat))) |
| 659 | 659 | ||
| 660 | (define-public python-packaging-bootstrap | 660 | (define-public python-packaging |
| 661 | (package | 661 | (package |
| 662 | (name "python-packaging-bootstrap") | 662 | (name "python-packaging") |
| 663 | (version "25.0") | 663 | (version "25.0") |
| 664 | (source | 664 | (source |
| 665 | (origin | 665 | (origin |
| @@ -668,20 +668,32 @@ that client code uses to construct the grammar directly in Python code.") | |||
| 668 | (sha256 | 668 | (sha256 |
| 669 | (base32 "0kzwn2ar4ndm90qrvgyjcbkqz3klrg0ziwm1yrhbyxynk0n8fhyl")))) | 669 | (base32 "0kzwn2ar4ndm90qrvgyjcbkqz3klrg0ziwm1yrhbyxynk0n8fhyl")))) |
| 670 | (build-system pyproject-build-system) | 670 | (build-system pyproject-build-system) |
| 671 | (arguments `(#:tests? #f)) ;disabled to avoid extra dependencies | ||
| 672 | (native-inputs | 671 | (native-inputs |
| 673 | (list python-flit-core)) | 672 | (list python-flit-core |
| 673 | python-pretend | ||
| 674 | python-pytest-bootstrap)) | ||
| 675 | (propagated-inputs (list python-pyparsing python-six)) | ||
| 674 | (home-page "https://github.com/pypa/packaging") | 676 | (home-page "https://github.com/pypa/packaging") |
| 675 | (synopsis "Core utilities for Python packages") | 677 | (synopsis "Core utilities for Python packages") |
| 676 | (description "Packaging is a Python module for dealing with Python packages. | 678 | (description "Packaging is a Python module for dealing with Python packages. |
| 677 | It offers an interface for working with package versions, names, and dependency | 679 | It offers an interface for working with package versions, names, and dependency |
| 678 | information.") | 680 | information.") |
| 679 | ;; From 'LICENSE': This software is made available under the terms of | 681 | ;; From 'LICENSE': This software is made available under the terms of |
| 680 | ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD. | 682 | ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD. |
| 681 | ;; Contributions to this software is made under the terms of *both* these | 683 | ;; Contributions to this software is made under the terms of *both* these |
| 682 | ;; licenses. | 684 | ;; licenses. |
| 683 | (license (list license:asl2.0 license:bsd-2)))) | 685 | (license (list license:asl2.0 license:bsd-2)))) |
| 684 | 686 | ||
| 687 | (define-public python-packaging-bootstrap | ||
| 688 | (package/inherit python-packaging | ||
| 689 | (name "python-packaging-bootstrap") | ||
| 690 | (arguments | ||
| 691 | ;; XXX: disabled to avoid extra dependencies | ||
| 692 | (list | ||
| 693 | #:tests? #f)) | ||
| 694 | (native-inputs (list python-flit-core)) | ||
| 695 | (propagated-inputs '()))) | ||
| 696 | |||
| 685 | (define-public python-pretend | 697 | (define-public python-pretend |
| 686 | (package | 698 | (package |
| 687 | (name "python-pretend") | 699 | (name "python-pretend") |
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index ca621924ea5..ed511c2f7a0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm | |||
| @@ -25094,31 +25094,6 @@ spoken MP3 data to a file, a file-like object (bytestring) for further audio | |||
| 25094 | manipulation, or @code{stdout}.") | 25094 | manipulation, or @code{stdout}.") |
| 25095 | (license license:expat))) | 25095 | (license license:expat))) |
| 25096 | 25096 | ||
| 25097 | (define-public python-packaging | ||
| 25098 | (package/inherit python-packaging-bootstrap | ||
| 25099 | (name "python-packaging") | ||
| 25100 | (arguments | ||
| 25101 | `(#:phases (modify-phases %standard-phases | ||
| 25102 | (replace 'check | ||
| 25103 | (lambda* (#:key tests? #:allow-other-keys) | ||
| 25104 | (if tests? | ||
| 25105 | (invoke "pytest" "-vv") | ||
| 25106 | (format #t "test suite not run~%"))))))) | ||
| 25107 | (native-inputs | ||
| 25108 | (list python-flit-core | ||
| 25109 | python-pretend python-pytest)) | ||
| 25110 | (propagated-inputs (list python-pyparsing python-six)) | ||
| 25111 | (home-page "https://github.com/pypa/packaging") | ||
| 25112 | (synopsis "Core utilities for Python packages") | ||
| 25113 | (description "Packaging is a Python module for dealing with Python packages. | ||
| 25114 | It offers an interface for working with package versions, names, and dependency | ||
| 25115 | information.") | ||
| 25116 | ;; From 'LICENSE': This software is made available under the terms of | ||
| 25117 | ;; *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD. | ||
| 25118 | ;; Contributions to this software is made under the terms of *both* these | ||
| 25119 | ;; licenses. | ||
| 25120 | (license (list license:asl2.0 license:bsd-2)))) | ||
| 25121 | |||
| 25122 | (define-public python-packaging-legacy | 25097 | (define-public python-packaging-legacy |
| 25123 | (package | 25098 | (package |
| 25124 | (name "python-packaging-legacy") | 25099 | (name "python-packaging-legacy") |
