Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 cython, 5 fetchFromGitHub, 6 numba, 7 numpy, 8 pytestCheckHook, 9 pythonOlder, 10 scipy, 11}: 12 13buildPythonPackage rec { 14 pname = "resampy"; 15 version = "0.4.3"; 16 format = "setuptools"; 17 18 disabled = pythonOlder "3.7"; 19 20 src = fetchFromGitHub { 21 owner = "bmcfee"; 22 repo = pname; 23 rev = "refs/tags/${version}"; 24 hash = "sha256-LOWpOPAEK+ga7c3bR15QvnHmON6ARS1Qee/7U/VMlTY="; 25 }; 26 27 propagatedBuildInputs = [ 28 numpy 29 cython 30 numba 31 ]; 32 33 nativeCheckInputs = [ 34 pytestCheckHook 35 scipy 36 ]; 37 38 postPatch = '' 39 substituteInPlace setup.cfg \ 40 --replace " --cov-report term-missing --cov resampy --cov-report=xml" "" 41 ''; 42 43 pythonImportsCheck = [ "resampy" ]; 44 45 meta = with lib; { 46 description = "Efficient signal resampling"; 47 homepage = "https://github.com/bmcfee/resampy"; 48 license = licenses.isc; 49 maintainers = [ ]; 50 }; 51}