1{ lib
2, buildPythonPackage
3, fetchPypi
4, cython
5, nose
6, pytest
7, numpy
8}:
9
10buildPythonPackage rec {
11 pname = "PyWavelets";
12 version = "1.0.1";
13
14 src = fetchPypi {
15 inherit pname version;
16 sha256 = "3c5cece36d4e17d395be6e9ac6b80ce7b774a1f71c251756c6163e63b6d878dc";
17 };
18
19 checkInputs = [ nose pytest ];
20
21 buildInputs = [ cython ];
22
23 propagatedBuildInputs = [ numpy ];
24
25 # Somehow nosetests doesn't run the tests, so let's use pytest instead
26 checkPhase = ''
27 py.test pywt/tests
28 '';
29
30 meta = {
31 description = "Wavelet transform module";
32 homepage = https://github.com/PyWavelets/pywt;
33 license = lib.licenses.mit;
34 };
35
36}