me
/
guix
Archived
1
0
Fork 0

gnu: python-shapely: Update to 2.0.1.

* gnu/packages/python-xyz.scm (python-shapely): Update to 2.0.1.
[arguments]: Remove 'patch-geos-path build phase; add 'build-extensions phase.
[build-system]: Use pyproject-build-system.
master
Ricardo Wurmus 2023-06-13 14:38:09 +02:00
parent 49711f621b
commit 706bf5f0c2
No known key found for this signature in database
GPG Key ID: 197A5888235FACAC
1 changed files with 12 additions and 23 deletions

View File

@ -1716,14 +1716,22 @@ attacks or network discovery.")
(define-public python-shapely (define-public python-shapely
(package (package
(name "python-shapely") (name "python-shapely")
(version "1.8.4") (version "2.0.1")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "Shapely" version)) (uri (pypi-uri "shapely" version))
(sha256 (sha256
(base32 "130rqd0czi128wm5pdn47v4m6czxd7pkzanbya8q48gsm8ffb5d1")))) (base32 "14v88k0y7qhp8n5clip6w96pkdzrfqa2hsjkhpy9gkifwyiv39k6"))))
(build-system python-build-system) (build-system pyproject-build-system)
(arguments
(list
#:phases
'(modify-phases %standard-phases
(add-before 'check 'build-extensions
(lambda _
;; Cython extensions have to be built before running the tests.
(invoke "python" "setup.py" "build_ext" "--inplace"))))))
(native-inputs (native-inputs
(list python-cython python-matplotlib python-pytest (list python-cython python-matplotlib python-pytest
python-pytest-cov)) python-pytest-cov))
@ -1731,25 +1739,6 @@ attacks or network discovery.")
(list geos)) (list geos))
(propagated-inputs (propagated-inputs
(list python-numpy)) (list python-numpy))
(arguments
`(#:phases
(modify-phases %standard-phases
(add-after 'unpack 'patch-geos-path
(lambda* (#:key inputs #:allow-other-keys)
(let ((geos (assoc-ref inputs "geos"))
(glibc (assoc-ref inputs ,(if (%current-target-system)
"cross-libc" "libc"))))
(substitute* '("shapely/geos.py" "shapely/_buildcfg.py")
(("_lgeos = load_dll\\('geos_c', fallbacks=.*\\)")
(string-append "_lgeos = load_dll('geos_c', fallbacks=['"
geos "/lib/libgeos_c.so'])"))
(("free = load_dll\\('c'\\)\\.free")
(string-append "free = load_dll('c', fallbacks=['"
glibc "/lib/libc.so.6']).free"))
(("free = load_dll\\('c', fallbacks=.*\\)\\.free")
(string-append "free = load_dll('c', fallbacks=['"
glibc "/lib/libc.so.6']).free"))))
#t)))))
(home-page "https://github.com/Toblerity/Shapely") (home-page "https://github.com/Toblerity/Shapely")
(synopsis "Library for the manipulation and analysis of geometric objects") (synopsis "Library for the manipulation and analysis of geometric objects")
(description "Shapely is a Python package for manipulation and analysis of (description "Shapely is a Python package for manipulation and analysis of