diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-10-03 16:34:01 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-10-03 21:53:31 +0100 |
| commit | e6be560b495c698a1f2a44ac22ac7d8978c2b1d8 (patch) | |
| tree | 9a0b26d32e39d8c210921b78432432cf95faa779 /gnu/packages/python-xyz.scm | |
| parent | f11a0157791087c1f371b685ff4e0c0a1e24cf97 (diff) | |
gnu: python-colour: Switch to pyproject.
* gnu/local.mk (python-colour):
[source]: Switch to git-fetch. Add patch to remove d2to1 dependency.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'set-version.
<#:tests?>: Disable them.
[native-inputs]: Add python-setuptools.
[description]: Improve style.
Change-Id: Icf722a429f7bb70b08e81d0048624c5ba2e82a89
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
Diffstat (limited to 'gnu/packages/python-xyz.scm')
| -rw-r--r-- | gnu/packages/python-xyz.scm | 40 |
1 files changed, 29 insertions, 11 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 5c9d7892a64..3574c9424e0 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -3969,19 +3969,37 @@ automatically generate the interface code.") (package (name "python-colour") (version "0.1.5") - (source (origin - (method url-fetch) - (uri (pypi-uri "colour" version)) - (sha256 - (base32 - "1visbisfini5j14bdzgs95yssw6sm4pfzyq1n3lfvbyjxw7i485g")))) - (build-system python-build-system) - (native-inputs - (list python-d2to1)) + (source + (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/vaab/colour") + (commit version))) + (file-name (git-file-name name version)) + (sha256 + (base32 "01k2n3zp6j0bws78vdy7i9d6m4lz3bm8z7d7lv1czks1d4aamnr2")) + (patches (search-patches "python-colour-remove-d2to1.patch")))) + (build-system pyproject-build-system) + (arguments + (list + #:tests? #f ; No tests. + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (substitute* "autogen.sh" + (("if ! \"\\$git\".*") + "if false ; then\n") + (("depends git grep") + "depends grep") + (("version=\\$\\(\"\\$git\" describe --tags\\)") + (format #f "version=~s" #$version)))))))) + (native-inputs (list python-setuptools)) (home-page "https://github.com/vaab/colour") (synopsis "Convert and manipulate various color representations") - (description "Pythonic way to manipulate color representations (HSL, RVB, -web, X11, ...).") + (description + "This package provides a pythonic way to manipulate color representations +(HSL, RVB,web, X11, ...).") (license license:expat))) (define-public python-d2to1 |
