2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytest
|
2021-07-24 12:14:16 +00:00
|
|
|
, pytest-cov
|
2020-04-24 23:36:52 +00:00
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, cython
|
|
|
|
, numba
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "resampy";
|
|
|
|
version = "0.2.2";
|
|
|
|
|
|
|
|
# No tests in PyPi Archive
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bmcfee";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
|
|
|
sha256 = "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs";
|
|
|
|
};
|
|
|
|
|
2021-07-24 12:14:16 +00:00
|
|
|
checkInputs = [ pytest pytest-cov ];
|
2020-04-24 23:36:52 +00:00
|
|
|
propagatedBuildInputs = [ numpy scipy cython numba six ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/bmcfee/resampy";
|
|
|
|
description = "Efficient signal resampling";
|
|
|
|
license = licenses.isc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|