From 1285119bdedfd94c58e8938e465f626d998c4633 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Wed, 7 Oct 2015 13:01:36 +0200 Subject: gnu: Add python-joblib. * gnu/packages/python.scm (python-joblib, python2-joblib): New variables. --- gnu/packages/python.scm | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 2c9772e933..5dda0b3429 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -2208,6 +2208,33 @@ written in pure Python.") (define-public python2-jinja2 (package-with-python2 python-jinja2)) +(define-public python-joblib + (package + (name "python-joblib") + (version "0.9.0b4") + (source (origin + (method url-fetch) + (uri (string-append "https://pypi.python.org/packages/source/" + "j/joblib/joblib-" version ".tar.gz")) + (sha256 + (base32 + "1dvw3f8jgj6h0fxkghbgyclvdzc7l0ig7n0vis70awb5kczb9bs3")))) + (build-system python-build-system) + (native-inputs + `(("python-setuptools" ,python-setuptools) + ("python-nose" ,python-nose))) + (home-page "http://pythonhosted.org/joblib/") + (synopsis "Using Python functions as pipeline jobs") + (description + "Joblib is a set of tools to provide lightweight pipelining in Python. +In particular, joblib offers: transparent disk-caching of the output values +and lazy re-evaluation (memoize pattern), easy simple parallel computing +logging and tracing of the execution.") + (license bsd-3))) + +(define-public python2-joblib + (package-with-python2 python-joblib)) + (define-public python-docutils (package (name "python-docutils") -- cgit v1.3 From 3c4010b1e966ca112470eba262de2835815ba218 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 8 Oct 2015 13:30:23 +0200 Subject: gnu: python-h5py, python2-h5py: Correct inputs. * gnu/packages/python.scm (python-h5py) [inputs]: Remove python-cython and python-numpy. [propagated-inputs]: New field. [native-inputs]: Drop python-setuptools and add python-cython. (python2-h5py): Replace "inputs" with "propagated-inputs". --- gnu/packages/python.scm | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 5dda0b3429..4faa08fe25 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -596,12 +596,12 @@ and verifies that it matches the intended target hostname.") (base32 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps")))) (build-system python-build-system) + (propagated-inputs + `(("python-numpy" ,python-numpy))) (inputs - `(("python-cython" ,python-cython) - ("python-numpy" ,python-numpy) - ("hdf5" ,hdf5))) + `(("hdf5" ,hdf5))) (native-inputs - `(("python-setuptools" ,python-setuptools))) + `(("python-cython" ,python-cython))) (arguments `(#:tests? #f)) ; no test target (home-page "http://www.h5py.org/") (synopsis "Read and write HDF5 files from Python") @@ -616,11 +616,11 @@ concepts.") (define-public python2-h5py (let ((h5py (package-with-python2 python-h5py))) (package (inherit h5py) - (inputs + (propagated-inputs `(("python2-numpy" ,python2-numpy) ,@(alist-delete "python-numpy" - (package-inputs h5py))))))) + (package-propagated-inputs h5py))))))) (define-public python-lockfile (package -- cgit v1.3 From 797e1401feda5c32c67c2069afdbdc29792dfa78 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 8 Oct 2015 13:34:11 +0200 Subject: gnu: python-h5py: Fix path to hdf5 library. * gnu/packages/python.scm (python-h5py)[arguments]: Add "fix-hdf5-paths" phase. --- gnu/packages/python.scm | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'gnu/packages/python.scm') diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm index 4faa08fe25..e94a2ebba2 100644 --- a/gnu/packages/python.scm +++ b/gnu/packages/python.scm @@ -596,13 +596,28 @@ and verifies that it matches the intended target hostname.") (base32 "0q4f9l8grf6pwp64xbv8bmyxx416s7h4522nnxac056ap3savbps")))) (build-system python-build-system) + (arguments + `(#:tests? #f ; no test target + #:phases + (modify-phases %standard-phases + (add-after 'unpack 'fix-hdf5-paths + (lambda* (#:key inputs #:allow-other-keys) + (let ((prefix (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 `(("python-numpy" ,python-numpy))) (inputs `(("hdf5" ,hdf5))) (native-inputs `(("python-cython" ,python-cython))) - (arguments `(#:tests? #f)) ; no test target (home-page "http://www.h5py.org/") (synopsis "Read and write HDF5 files from Python") (description -- cgit v1.3