diff options
| author | Nicolas Graves <ngraves@ngraves.fr> | 2025-09-21 14:53:23 +0200 |
|---|---|---|
| committer | Sharlatan Hellseher <sharlatanus@gmail.com> | 2025-09-25 09:36:47 +0100 |
| commit | 0e22833e339be21299b35aab1fc3fa90f373e1ef (patch) | |
| tree | fe363aba4f5de8c78d8a28e82aff13f121298caa | |
| parent | 6f81a0079916fe8423487aa8990f6cb69ff0709b (diff) | |
gnu: python-pyclipper: Update to 1.3.0.post6.
* gnu/packages/python-xyz.scm (python-pyclipper): Update to 1.3.0.post6.
[source]: Switch to git-fetch, remove snippet.
[build-system]: Switch to pyproject-build-system.
[arguments]<#:phases>: Add phase 'set-version.
[native-inputs]: Add python-setuptools, remove python-pytest-runner.
Change-Id: Iec0229e6941fdd24c0624c40c4cc5b70935c2165
Signed-off-by: Sharlatan Hellseher <sharlatanus@gmail.com>
| -rw-r--r-- | gnu/packages/python-xyz.scm | 34 |
1 files changed, 18 insertions, 16 deletions
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm index 69b88dd8b9..29fd295f46 100644 --- a/gnu/packages/python-xyz.scm +++ b/gnu/packages/python-xyz.scm @@ -28023,28 +28023,30 @@ definitions to simplify the use of C bindings.") (define-public python-pyclipper (package (name "python-pyclipper") - (version "1.3.0.post3") + (version "1.3.0.post6") (source (origin - (method url-fetch) - (uri (pypi-uri "pyclipper" version)) + (method git-fetch) + (uri (git-reference + (url "https://github.com/greginvm/pyclipper") + (commit version))) + (file-name (git-file-name name version)) (sha256 - (base32 "0vqzbmq2di1jaj6230m5i1ld0mg6wdb1c6r6i5zli54varavr7v3")) - (modules '((guix build utils))) - (snippet - '(begin - ;; This file is generated by Cython. - (delete-file "src/pyclipper/_pyclipper.cpp") #t)))) + (base32 "1ijr7sx3203b3ppvsn1zyy8nfz93nbi60l8dxj2hdd6sj25g8q5k")))) (build-system pyproject-build-system) (arguments - `(#:phases - (modify-phases %standard-phases - (add-before 'build 'cythonize-sources - (lambda _ - (with-directory-excursion "src/pyclipper" - (invoke "cython" "--cplus" "_pyclipper.pyx"))))))) + (list + #:phases + #~(modify-phases %standard-phases + (add-after 'unpack 'set-version + (lambda _ + (setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version))) + (add-before 'build 'cythonize-sources + (lambda _ + (with-directory-excursion "src/pyclipper" + (invoke "cython" "--cplus" "_pyclipper.pyx"))))))) (native-inputs - (list python-cython-0 + (list python-cython python-pytest python-setuptools python-setuptools-scm)) |
