guix-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

01/03: gnu: python2-h5py: Detach version and source from python-h5py.


From: guix-commits
Subject: 01/03: gnu: python2-h5py: Detach version and source from python-h5py.
Date: Thu, 31 Mar 2022 04:39:08 -0400 (EDT)

rekado pushed a commit to branch master
in repository guix.

commit 967d5fd5c24883e0e33ca9b2f5b7d8a12805d57f
Author: Ricardo Wurmus <rekado@elephly.net>
AuthorDate: Thu Mar 31 10:33:54 2022 +0200

    gnu: python2-h5py: Detach version and source from python-h5py.
    
    * gnu/packages/python-xyz.scm (python2-h5py): Override source and version
    field.
    (python-h5py)[properties]: Record python2-variant.
---
 gnu/packages/python-xyz.scm | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/gnu/packages/python-xyz.scm b/gnu/packages/python-xyz.scm
index c576d2106a..a4d86ace92 100644
--- a/gnu/packages/python-xyz.scm
+++ b/gnu/packages/python-xyz.scm
@@ -1388,10 +1388,21 @@ HDF5 library from Python.  The low-level interface is 
intended to be a
 complete wrapping of the HDF5 API, while the high-level component supports
 access to HDF5 files, datasets and groups using established Python and NumPy
 concepts.")
-    (license license:bsd-3)))
+    (license license:bsd-3)
+    (properties `((python2-variant . ,(delay python2-h5py))))))
 
 (define-public python2-h5py
-  (package-with-python2 python-h5py))
+  (let ((base (package-with-python2 (strip-python2-variant python-h5py))))
+    (package
+      (inherit base)
+      (version "2.10.0")
+      (source
+       (origin
+         (method url-fetch)
+         (uri (pypi-uri "h5py" version))
+         (sha256
+          (base32
+           "0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4")))))))
 
 (define-public python-hnswlib
   (package



reply via email to

[Prev in Thread] Current Thread [Next in Thread]