gnu: python-h5py: Update to 3.6.0.

* gnu/packages/python-xyz.scm (python-h5py): Update to 3.6.0.
[arguments]: Set HDF5_DIR variable instead of patching files.
This commit is contained in:
Ricardo Wurmus 2022-03-31 10:35:17 +02:00
parent 967d5fd5c2
commit ea403bf290
No known key found for this signature in database
GPG key ID: 197A5888235FACAC

View file

@ -1349,14 +1349,14 @@ (define-public python-hdf4
(define-public python-h5py (define-public python-h5py
(package (package
(name "python-h5py") (name "python-h5py")
(version "2.10.0") (version "3.6.0")
(source (source
(origin (origin
(method url-fetch) (method url-fetch)
(uri (pypi-uri "h5py" version)) (uri (pypi-uri "h5py" version))
(sha256 (sha256
(base32 (base32
"0baipzv8n93m0dq0riyi8rfhzrjrfrfh8zqhszzp1j2xjac2fhc4")))) "0afv805vqrm5071g7alwv41920nhh8kjv4m5nbia9awj9a0x4ll7"))))
(build-system python-build-system) (build-system python-build-system)
(arguments (arguments
`(#:tests? #f ; no test target `(#:tests? #f ; no test target
@ -1364,16 +1364,7 @@ (define-public python-h5py
(modify-phases %standard-phases (modify-phases %standard-phases
(add-after 'unpack 'fix-hdf5-paths (add-after 'unpack 'fix-hdf5-paths
(lambda* (#:key inputs #:allow-other-keys) (lambda* (#:key inputs #:allow-other-keys)
(let ((prefix (assoc-ref inputs "hdf5"))) (setenv "HDF5_DIR" (assoc-ref inputs "hdf5")))))))
(substitute* "setup_build.py"
(("\\['/opt/local/lib', '/usr/local/lib'\\]")
(string-append "['" prefix "/lib" "']"))
(("'/opt/local/include', '/usr/local/include'")
(string-append "'" prefix "/include" "'")))
(substitute* "setup_configure.py"
(("\\['/usr/local/lib', '/opt/local/lib'\\]")
(string-append "['" prefix "/lib" "']")))
#t))))))
(propagated-inputs (propagated-inputs
(list python-six python-numpy)) (list python-six python-numpy))
(inputs (inputs