summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorMarius Bakke <mbakke@fastmail.com>2018-12-02 20:13:39 +0100
committerMarius Bakke <mbakke@fastmail.com>2018-12-03 17:44:14 +0100
commit36c90dda38b5324530dc2d09b66569ed6f8541a3 (patch)
treeda3cd4402dc3f973e2ca76839ed187b24a8d69f6 /gnu
parent8aaec042d4a7cff68c219443517b55b1d9f0ee9c (diff)
gnu: Add python-pywavelets.
* gnu/packages/python.scm (python-pywavelets, python2-pywavelets): New public variables.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/packages/python.scm43
1 files changed, 43 insertions, 0 deletions
diff --git a/gnu/packages/python.scm b/gnu/packages/python.scm
index b0edaf906f3..570cfb65e21 100644
--- a/gnu/packages/python.scm
+++ b/gnu/packages/python.scm
@@ -4170,6 +4170,49 @@ a front-end for C compilers or analysis tools.")
4170(define-public python2-pycparser 4170(define-public python2-pycparser
4171 (package-with-python2 python-pycparser)) 4171 (package-with-python2 python-pycparser))
4172 4172
4173(define-public python-pywavelets
4174 (package
4175 (name "python-pywavelets")
4176 (version "1.0.1")
4177 (home-page "https://github.com/PyWavelets/pywt")
4178 (source (origin
4179 (method url-fetch)
4180 (uri (pypi-uri "PyWavelets" version))
4181 (sha256
4182 (base32
4183 "1p3qv2v66ghnqrb1f98wyyhp9dz71jwcd6kfpsax65sfdpiyqp1w"))))
4184 (build-system python-build-system)
4185 (arguments
4186 '(#:modules ((ice-9 ftw)
4187 (srfi srfi-1)
4188 (srfi srfi-26)
4189 (guix build utils)
4190 (guix build python-build-system))
4191 #:phases (modify-phases %standard-phases
4192 (replace 'check
4193 (lambda _
4194 (let ((cwd (getcwd))
4195 (libdir (find (cut string-prefix? "lib." <>)
4196 (scandir "build"))))
4197 (with-directory-excursion (string-append cwd "/build/" libdir)
4198 (invoke "nosetests" "-v" "."))))))))
4199 (native-inputs
4200 `(("python-matplotlib" ,python-matplotlib) ;for tests
4201 ("python-nose" ,python-nose)))
4202 (propagated-inputs
4203 `(("python-numpy" ,python-numpy)))
4204 (synopsis "Wavelet transforms in Python")
4205 (description
4206 "PyWavelets is a library for wavelet transforms in Python. Wavelets are
4207mathematical basis functions that are localized in both time and frequency.
4208Wavelet transforms are time-frequency transforms employing wavelets. They are
4209similar to Fourier transforms, the difference being that Fourier transforms are
4210localized only in frequency instead of in time and frequency.")
4211 (license license:expat)))
4212
4213(define-public python2-pywavelets
4214 (package-with-python2 python-pywavelets))
4215
4173(define-public python-xcffib 4216(define-public python-xcffib
4174 (package 4217 (package
4175 (name "python-xcffib") 4218 (name "python-xcffib")