summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/resampy/default.nix
blob: 9326b5ea161f60575f315e973d88d09837510d5d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  numba,
  numpy,
  optuna,
  pytest-cov-stub,
  pytestCheckHook,
  setuptools,
  scipy,
}:

buildPythonPackage rec {
  pname = "resampy";
  version = "0.4.3";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "bmcfee";
    repo = "resampy";
    tag = version;
    hash = "sha256-LOWpOPAEK+ga7c3bR15QvnHmON6ARS1Qee/7U/VMlTY=";
  };

  build-system = [ setuptools ];

  dependencies = [
    numpy
    numba
  ];

  optional-dependencies.design = [ optuna ];

  nativeCheckInputs = [
    pytest-cov-stub
    pytestCheckHook
    scipy
  ];

  disabledTests = lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
    # crashing the interpreter
    "test_quality_sine_parallel"
    "test_resample_nu_quality_sine_parallel"
  ];

  pythonImportsCheck = [ "resampy" ];

  meta = {
    description = "Efficient signal resampling";
    homepage = "https://github.com/bmcfee/resampy";
    license = lib.licenses.isc;
    maintainers = [ ];
  };
}