[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
03/06: gnu: python-shapely: Update to 2.0.1.
From: |
guix-commits |
Subject: |
03/06: gnu: python-shapely: Update to 2.0.1. |
Date: |
Wed, 14 Jun 2023 08:10:26 -0400 (EDT) |
rekado pushed a commit to branch master
in repository guix.
commit 706bf5f0c26c20eda69c9808c7b52c4d8a3e45d4
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Tue Jun 13 14:38:09 2023 +0200
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.
---
gnu/packages/python-xyz.scm | 35 ++++++++++++-----------------------
1 file changed, 12 insertions(+), 23 deletions(-)
diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index 65d9742f2d..eab3020323 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1716,14 +1716,22 @@ attacks or network discovery.")
(define-public python-shapely
(package
(name "python-shapely")
- (version "1.8.4")
+ (version "2.0.1")
(source
(origin
(method url-fetch)
- (uri (pypi-uri "Shapely" version))
+ (uri (pypi-uri "shapely" version))
(sha256
- (base32 "130rqd0czi128wm5pdn47v4m6czxd7pkzanbya8q48gsm8ffb5d1"))))
- (build-system python-build-system)
+ (base32 "14v88k0y7qhp8n5clip6w96pkdzrfqa2hsjkhpy9gkifwyiv39k6"))))
+ (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
(list python-cython python-matplotlib python-pytest
python-pytest-cov))
@@ -1731,25 +1739,6 @@ attacks or network discovery.")
(list geos))
(propagated-inputs
(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";)
(synopsis "Library for the manipulation and analysis of geometric objects")
(description "Shapely is a Python package for manipulation and analysis of
- branch master updated (9edf093e58 -> 7c12255eb9), guix-commits, 2023/06/14
- 01/06: gnu: Add r-openai., guix-commits, 2023/06/14
- 03/06: gnu: python-shapely: Update to 2.0.1.,
guix-commits <=
- 06/06: gnu: guile-openai: Update to 0.2-1.751cd5d., guix-commits, 2023/06/14
- 05/06: gnu: Add r-word2vec., guix-commits, 2023/06/14
- 04/06: import/cran: Add another clause for ASL 2.0., guix-commits, 2023/06/14
- 02/06: gnu: Add r-doc2vec., guix-commits, 2023/06/14