7bc014aa9c
GitOrigin-RevId: c97e777ff06fcb8d37dcdf5e21e9eff1f34f0e90
52 lines
911 B
Nix
52 lines
911 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchFromGitHub
|
|
, numba
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "resampy";
|
|
version = "0.4.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bmcfee";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-8qhYhkTtq7DwEvw+B4Ul4SMAPxweTgDIOtebmElkcsg=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
cython
|
|
numba
|
|
];
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
scipy
|
|
];
|
|
|
|
postPatch = ''
|
|
substituteInPlace setup.cfg \
|
|
--replace " --cov-report term-missing --cov resampy --cov-report=xml" ""
|
|
'';
|
|
|
|
pythonImportsCheck = [
|
|
"resampy"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Efficient signal resampling";
|
|
homepage = "https://github.com/bmcfee/resampy";
|
|
license = licenses.isc;
|
|
maintainers = with maintainers; [ ];
|
|
};
|
|
}
|