nixpkgs/pkgs/development/python-modules/resampy/default.nix

39 lines
673 B
Nix
Raw Normal View History

{ stdenv
, buildPythonPackage
2019-03-05 00:41:24 +00:00
, fetchFromGitHub
, pytest
, pytestcov
, numpy
, scipy
, cython
2019-03-04 20:37:31 +00:00
, numba
, six
}:
buildPythonPackage rec {
pname = "resampy";
2018-11-04 10:35:15 +00:00
version = "0.2.1";
2019-03-05 00:41:24 +00:00
# No tests in PyPi Archive
src = fetchFromGitHub {
owner = "bmcfee";
repo = pname;
rev = version;
sha256 = "0a2bxj042y62dimm2i4vglbhpwbybam07mcl67cb6pmfsw9fbqhj";
};
checkInputs = [ pytest pytestcov ];
2019-03-04 20:37:31 +00:00
propagatedBuildInputs = [ numpy scipy cython numba six ];
2019-03-05 00:41:24 +00:00
checkPhase = ''
pytest tests
'';
meta = with stdenv.lib; {
homepage = https://github.com/bmcfee/resampy;
description = "Efficient signal resampling";
license = licenses.isc;
};
}