nixpkgs-suyu/pkgs/development/python-modules/pywavelets/default.nix

36 lines
650 B
Nix
Raw Normal View History

2018-07-20 07:38:08 +02:00
{ lib
, buildPythonPackage
, fetchPypi
, cython
, nose
, pytest
, numpy
}:
buildPythonPackage rec {
pname = "PyWavelets";
2018-11-04 11:35:14 +01:00
version = "1.0.1";
2018-07-20 07:38:08 +02:00
src = fetchPypi {
inherit pname version;
2018-11-04 11:35:14 +01:00
sha256 = "3c5cece36d4e17d395be6e9ac6b80ce7b774a1f71c251756c6163e63b6d878dc";
2018-07-20 07:38:08 +02:00
};
checkInputs = [ nose pytest ];
buildInputs = [ cython ];
propagatedBuildInputs = [ numpy ];
# Somehow nosetests doesn't run the tests, so let's use pytest instead
checkPhase = ''
py.test pywt/tests
'';
meta = {
description = "Wavelet transform module";
homepage = https://github.com/PyWavelets/pywt;
license = lib.licenses.mit;
};
}