2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-26 17:18:47 +01:00
|
|
|
, buildPythonPackage
|
2019-03-05 00:41:24 +00:00
|
|
|
, fetchFromGitHub
|
2018-10-26 17:18:47 +01:00
|
|
|
, pytest
|
|
|
|
, pytestcov
|
|
|
|
, numpy
|
|
|
|
, scipy
|
|
|
|
, cython
|
2019-03-04 20:37:31 +00:00
|
|
|
, numba
|
2018-10-26 17:18:47 +01:00
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "resampy";
|
2019-09-29 00:52:24 +01:00
|
|
|
version = "0.2.2";
|
2018-10-26 17:18:47 +01:00
|
|
|
|
2019-03-05 00:41:24 +00:00
|
|
|
# No tests in PyPi Archive
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "bmcfee";
|
|
|
|
repo = pname;
|
|
|
|
rev = version;
|
2019-09-29 00:52:24 +01:00
|
|
|
sha256 = "0qmkxl5sbgh0j73n667vyi7ywzh09iaync91yp1j5rrcmwsn0qfs";
|
2018-10-26 17:18:47 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
checkInputs = [ pytest pytestcov ];
|
2019-03-04 20:37:31 +00:00
|
|
|
propagatedBuildInputs = [ numpy scipy cython numba six ];
|
2018-10-26 17:18:47 +01:00
|
|
|
|
2019-03-05 00:41:24 +00:00
|
|
|
checkPhase = ''
|
|
|
|
pytest tests
|
|
|
|
'';
|
2018-10-26 17:18:47 +01:00
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/bmcfee/resampy";
|
2018-10-26 17:18:47 +01:00
|
|
|
description = "Efficient signal resampling";
|
|
|
|
license = licenses.isc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|