2018-10-26 17:18:47 +01:00
|
|
|
{ stdenv
|
|
|
|
, 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
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
homepage = https://github.com/bmcfee/resampy;
|
|
|
|
description = "Efficient signal resampling";
|
|
|
|
license = licenses.isc;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|