mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-20 21:17:46 +00:00
36 lines
650 B
Nix
36 lines
650 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, cython
|
|
, nose
|
|
, pytest
|
|
, numpy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "PyWavelets";
|
|
version = "0.5.2";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "ce36e2f0648ea1781490b09515363f1f64446b0eac524603e5db5e180113bed9";
|
|
};
|
|
|
|
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;
|
|
};
|
|
|
|
} |