587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
52 lines
917 B
Nix
52 lines
917 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, cython
|
|
, fetchFromGitHub
|
|
, numba
|
|
, numpy
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, scipy
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "resampy";
|
|
version = "0.4.3";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "bmcfee";
|
|
repo = pname;
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-LOWpOPAEK+ga7c3bR15QvnHmON6ARS1Qee/7U/VMlTY=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
cython
|
|
numba
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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; [ ];
|
|
};
|
|
}
|