gnu: python-pyclipper: Update to 1.1.0post1.
* gnu/packages/python.scm (python-pyclipper): Update to 1.1.0post1. [source]: Add snippet to remove cythonized source files. [arguments]: Add custom phase to generate cythonized files. [native-inputs]: Add python-cython. [description]: Update clipper library version.
This commit is contained in:
parent
95176544d5
commit
8189ce6f05
|
@ -12896,26 +12896,38 @@ belong to tagged versions.")
|
||||||
(define-public python-pyclipper
|
(define-public python-pyclipper
|
||||||
(package
|
(package
|
||||||
(name "python-pyclipper")
|
(name "python-pyclipper")
|
||||||
(version "1.0.6")
|
(version "1.1.0.post1")
|
||||||
(source
|
(source
|
||||||
(origin
|
(origin
|
||||||
(method url-fetch)
|
(method url-fetch)
|
||||||
(uri (pypi-uri "pyclipper" version ".zip"))
|
(uri (pypi-uri "pyclipper" version ".zip"))
|
||||||
(sha256
|
(sha256
|
||||||
(base32
|
(base32
|
||||||
"1zpmwv3bya3j984y5cf9x9d5108kf6mxldcba68wiq0frv5qrssw"))))
|
"0ldbkbnx94an4zzrwb1sxmg6k0jgk4cwmvcdyy8y5k1zslc612wa"))
|
||||||
|
(modules '((guix build utils)))
|
||||||
|
(snippet
|
||||||
|
'(begin
|
||||||
|
;; This file is generated by Cython.
|
||||||
|
(delete-file "pyclipper/pyclipper.cpp") #t))))
|
||||||
(build-system python-build-system)
|
(build-system python-build-system)
|
||||||
(arguments
|
(arguments
|
||||||
`(#:tests? #f)); 8 Tests fail, 37 succeed
|
`(#:tests? #f ; 8 Tests fail, 37 succeed
|
||||||
|
#:phases
|
||||||
|
(modify-phases %standard-phases
|
||||||
|
(add-before 'build 'cythonize-sources
|
||||||
|
(lambda _
|
||||||
|
(with-directory-excursion "pyclipper"
|
||||||
|
(invoke "cython" "--cplus" "pyclipper.pyx")))))))
|
||||||
(propagated-inputs
|
(propagated-inputs
|
||||||
`(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
|
`(("python-setuptools-scm-git-archive" ,python-setuptools-scm-git-archive)))
|
||||||
(native-inputs
|
(native-inputs
|
||||||
`(("unzip" ,unzip)))
|
`(("python-cython" ,python-cython)
|
||||||
|
("unzip" ,unzip)))
|
||||||
(home-page "https://github.com/greginvm/pyclipper")
|
(home-page "https://github.com/greginvm/pyclipper")
|
||||||
(synopsis "Wrapper for Angus Johnson's Clipper library")
|
(synopsis "Wrapper for Angus Johnson's Clipper library")
|
||||||
(description
|
(description
|
||||||
"Pyclipper is a Cython wrapper for the C++ translation of the
|
"Pyclipper is a Cython wrapper for the C++ translation of the
|
||||||
Angus Johnson's polygon clipping Clipper library (ver. 6.2.1).")
|
Angus Johnson's polygon clipping Clipper library (ver. 6.4.2).")
|
||||||
(license license:expat)))
|
(license license:expat)))
|
||||||
|
|
||||||
(define-public python2-pyclipper
|
(define-public python2-pyclipper
|
||||||
|
|
Loading…
Reference in New Issue