mirror of
https://codeberg.org/guix/guix.git
synced 2025-10-02 02:15:12 +00:00
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>
This commit is contained in:
parent
73965c5ca2
commit
55f27d9927
1 changed files with 18 additions and 16 deletions
|
@ -28047,28 +28047,30 @@ definitions to simplify the use of C bindings.")
|
||||||
(define-public python-pyclipper
|
(define-public python-pyclipper
|
||||||
(package
|
(package
|
||||||
(name "python-pyclipper")
|
(name "python-pyclipper")
|
||||||
(version "1.3.0.post3")
|
(version "1.3.0.post6")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method git-fetch)
|
||||||
(uri (pypi-uri "pyclipper" version))
|
(uri (git-reference
|
||||||
|
(url "https://github.com/greginvm/pyclipper")
|
||||||
|
(commit version)))
|
||||||
|
(file-name (git-file-name name version))
|
||||||
(sha256
|
(sha256
|
||||||
(base32 "0vqzbmq2di1jaj6230m5i1ld0mg6wdb1c6r6i5zli54varavr7v3"))
|
(base32 "1ijr7sx3203b3ppvsn1zyy8nfz93nbi60l8dxj2hdd6sj25g8q5k"))))
|
||||||
(modules '((guix build utils)))
|
|
||||||
(snippet
|
|
||||||
'(begin
|
|
||||||
;; This file is generated by Cython.
|
|
||||||
(delete-file "src/pyclipper/_pyclipper.cpp") #t))))
|
|
||||||
(build-system pyproject-build-system)
|
(build-system pyproject-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:phases
|
(list
|
||||||
(modify-phases %standard-phases
|
#:phases
|
||||||
|
#~(modify-phases %standard-phases
|
||||||
|
(add-after 'unpack 'set-version
|
||||||
|
(lambda _
|
||||||
|
(setenv "SETUPTOOLS_SCM_PRETEND_VERSION" #$version)))
|
||||||
(add-before 'build 'cythonize-sources
|
(add-before 'build 'cythonize-sources
|
||||||
(lambda _
|
(lambda _
|
||||||
(with-directory-excursion "src/pyclipper"
|
(with-directory-excursion "src/pyclipper"
|
||||||
(invoke "cython" "--cplus" "_pyclipper.pyx")))))))
|
(invoke "cython" "--cplus" "_pyclipper.pyx")))))))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list python-cython-0
|
(list python-cython
|
||||||
python-pytest
|
python-pytest
|
||||||
python-setuptools
|
python-setuptools
|
||||||
python-setuptools-scm))
|
python-setuptools-scm))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue