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