nixpkgs/pkgs/development/python-modules/resampy/default.nix
Fabian Affolter 30ab1697a9
python310Packages.resampy: switch to pytestCheckHook
- add pythonImportsCheck
- remove coverage
- disable on older Python releases
2022-06-30 23:13:40 +02:00

53 lines
911 B
Nix

{ lib
, buildPythonPackage
, cython
, fetchFromGitHub
, numba
, numpy
, pytestCheckHook
, pythonOlder
, scipy
}:
buildPythonPackage rec {
pname = "resampy";
version = "0.3.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "bmcfee";
repo = pname;
rev = "refs/tags/${version}";
hash = "sha256-OVj5dQafIoKeA04yTGBKTinldMjEccxrdiuRFIvRzcE=";
};
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; [ ];
};
}