diff options
| author | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2015-10-08 13:34:11 +0200 |
|---|---|---|
| committer | Ricardo Wurmus <ricardo.wurmus@mdc-berlin.de> | 2015-10-08 14:39:11 +0200 |
| commit | 797e1401feda5c32c67c2069afdbdc29792dfa78 (patch) | |
| tree | 0cc8d926b96b03f7fbec38a5b5278e31a0a312c1 /gnu/packages/python.scm | |
| parent | 3c4010b1e966ca112470eba262de2835815ba218 (diff) | |
gnu: python-h5py: Fix path to hdf5 library.
* gnu/packages/python.scm (python-h5py)[arguments]: Add "fix-hdf5-paths"
phase.
Diffstat (limited to 'gnu/packages/python.scm')
| -rw-r--r-- | gnu/packages/python.scm | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4faa08fe25c..e94a2ebba2f 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm | |||
| @@ -596,13 +596,28 @@ and verifies that it matches the intended target hostname.") | |||
| 596 | (base32 | 596 | (base32 |
| 597 | "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps")))) | 597 | "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps")))) |
| 598 | (build-system python-build-system) | 598 | (build-system python-build-system) |
| 599 | (arguments | ||
| 600 | `(#:tests? #f ; no test target | ||
| 601 | #:phases | ||
| 602 | (modify-phases %standard-phases | ||
| 603 | (add-after 'unpack 'fix-hdf5-paths | ||
| 604 | (lambda* (#:key inputs #:allow-other-keys) | ||
| 605 | (let ((prefix (assoc-ref inputs "hdf5"))) | ||
| 606 | (substitute* "setup_build.py" | ||
| 607 | (("\\['/opt/local/lib', '/usr/local/lib'\\]") | ||
| 608 | (string-append "['" prefix "/lib" "']")) | ||
| 609 | (("'/opt/local/include', '/usr/local/include'") | ||
| 610 | (string-append "'" prefix "/include" "'"))) | ||
| 611 | (substitute* "setup_configure.py" | ||
| 612 | (("\\['/usr/local/lib', '/opt/local/lib'\\]") | ||
| 613 | (string-append "['" prefix "/lib" "']"))) | ||
| 614 | #t)))))) | ||
| 599 | (propagated-inputs | 615 | (propagated-inputs |
| 600 | `(("python-numpy" ,python-numpy))) | 616 | `(("python-numpy" ,python-numpy))) |
| 601 | (inputs | 617 | (inputs |
| 602 | `(("hdf5" ,hdf5))) | 618 | `(("hdf5" ,hdf5))) |
| 603 | (native-inputs | 619 | (native-inputs |
| 604 | `(("python-cython" ,python-cython))) | 620 | `(("python-cython" ,python-cython))) |
| 605 | (arguments `(#:tests? #f)) ; no test target | ||
| 606 | (home-page "http://www.h5py.org/") | 621 | (home-page "http://www.h5py.org/") |
| 607 | (synopsis "Read and write HDF5 files from Python") | 622 | (synopsis "Read and write HDF5 files from Python") |
| 608 | (description | 623 | (description |
