mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
gnu: python-six: Do not inherit.
python-six-bootstrap is no longer required, this change removes it and refactor python-six as a stand alone package. * gnu/packages/python-build.scm (python-six-bootstrap): Remove variable. * gnu/packages/python-xyz.scm (python-six): Do not inherit, re-use package definition from python-six-bootstrap. (python2-six) [native-inputs]: Add python-setuptools, and python-wheel. Change-Id: Ia4abf667e0a2df65c171b3c8f5808d8e6d597b17
This commit is contained in:
parent
63c502891f
commit
7a739b32e2
2 changed files with 28 additions and 39 deletions
|
@ -154,30 +154,6 @@ write-only counterpart to Tomli, which is a read-only TOML parser.")
|
||||||
(description "This package provides a Python parser for TOML-0.4.0.")
|
(description "This package provides a Python parser for TOML-0.4.0.")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python-six-bootstrap
|
|
||||||
(package
|
|
||||||
(name "python-six-bootstrap")
|
|
||||||
(version "1.17.0")
|
|
||||||
(source
|
|
||||||
(origin
|
|
||||||
(method url-fetch)
|
|
||||||
(uri (pypi-uri "six" version))
|
|
||||||
(sha256
|
|
||||||
(base32 "109ajcsfhrz33lbwbb337w34crc3lb9rjnxrcpnbczlf8rfk6w7z"))))
|
|
||||||
(build-system pyproject-build-system)
|
|
||||||
(arguments `(#:tests? #f)) ;to avoid pytest dependency
|
|
||||||
(native-inputs
|
|
||||||
(list python-setuptools))
|
|
||||||
(home-page "https://pypi.org/project/six/")
|
|
||||||
(synopsis "Python 2 and 3 compatibility utilities")
|
|
||||||
(description
|
|
||||||
"Six is a Python 2 and 3 compatibility library. It provides utility
|
|
||||||
functions for smoothing over the differences between the Python versions with
|
|
||||||
the goal of writing Python code that is compatible on both Python versions.
|
|
||||||
Six supports every Python version since 2.5. It is contained in only one
|
|
||||||
Python file, so it can be easily copied into your project.")
|
|
||||||
(license license:x11)))
|
|
||||||
|
|
||||||
(define-public python-tomli
|
(define-public python-tomli
|
||||||
(package
|
(package
|
||||||
(name "python-tomli")
|
(name "python-tomli")
|
||||||
|
|
|
@ -5708,28 +5708,41 @@ in the current session, Python, and the OS.")
|
||||||
(license license:bsd-3)))
|
(license license:bsd-3)))
|
||||||
|
|
||||||
(define-public python-six
|
(define-public python-six
|
||||||
(package/inherit python-six-bootstrap
|
(package
|
||||||
(name "python-six")
|
(name "python-six")
|
||||||
(arguments
|
(version "1.17.0")
|
||||||
`(#:phases
|
(source
|
||||||
(modify-phases %standard-phases
|
(origin
|
||||||
(replace 'check
|
(method url-fetch)
|
||||||
(lambda _
|
(uri (pypi-uri "six" version))
|
||||||
(invoke "pytest" "-v"))))))
|
(sha256
|
||||||
|
(base32 "109ajcsfhrz33lbwbb337w34crc3lb9rjnxrcpnbczlf8rfk6w7z"))))
|
||||||
|
(build-system pyproject-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("python-pytest" ,python-pytest-bootstrap)))))
|
(list python-pytest-bootstrap
|
||||||
|
python-setuptools
|
||||||
|
python-wheel))
|
||||||
|
(home-page "https://pypi.org/project/six/")
|
||||||
|
(synopsis "Python 2 and 3 compatibility utilities")
|
||||||
|
(description
|
||||||
|
"Six is a Python 2 and 3 compatibility library. It provides utility
|
||||||
|
functions for smoothing over the differences between the Python versions with
|
||||||
|
the goal of writing Python code that is compatible on both Python versions.
|
||||||
|
Six supports every Python version since 2.5. It is contained in only one
|
||||||
|
Python file, so it can be easily copied into your project.")
|
||||||
|
(license license:x11)))
|
||||||
|
|
||||||
(define-public python2-six
|
(define-public python2-six
|
||||||
|
;; XXX: The only one user of this package is qtwebengine-5, consider to
|
||||||
|
;; remove when no longer required.
|
||||||
(let ((base (package-with-python2 python-six)))
|
(let ((base (package-with-python2 python-six)))
|
||||||
(package
|
(package
|
||||||
(inherit base)
|
(inherit base)
|
||||||
;; Reduce Python 2 closure by disabling tests and removing the native
|
;; Reduce Python 2 closure by disabling tests.
|
||||||
;; inputs.
|
(arguments (list #:tests? #f))
|
||||||
(arguments (substitute-keyword-arguments (package-arguments base)
|
(native-inputs
|
||||||
((#:phases phases)
|
(list python-setuptools
|
||||||
`(modify-phases ,phases
|
python-wheel)))))
|
||||||
(delete 'check)))))
|
|
||||||
(native-inputs '()))))
|
|
||||||
|
|
||||||
(define-public python-schedule
|
(define-public python-schedule
|
||||||
(package
|
(package
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue