nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{
2 lib,
3 stdenv,
4 buildPythonPackage,
5 fetchFromGitHub,
6 numba,
7 numpy,
8 optuna,
9 pytest-cov-stub,
10 pytestCheckHook,
11 setuptools,
12 scipy,
13}:
14
15buildPythonPackage rec {
16 pname = "resampy";
17 version = "0.4.3";
18 pyproject = true;
19
20 src = fetchFromGitHub {
21 owner = "bmcfee";
22 repo = "resampy";
23 tag = version;
24 hash = "sha256-LOWpOPAEK+ga7c3bR15QvnHmON6ARS1Qee/7U/VMlTY=";
25 };
26
27 build-system = [ setuptools ];
28
29 dependencies = [
30 numpy
31 numba
32 ];
33
34 optional-dependencies.design = [ optuna ];
35
36 nativeCheckInputs = [
37 pytest-cov-stub
38 pytestCheckHook
39 scipy
40 ];
41
42 disabledTests = lib.optionals (stdenv.hostPlatform.system == "aarch64-linux") [
43 # crashing the interpreter
44 "test_quality_sine_parallel"
45 "test_resample_nu_quality_sine_parallel"
46 ];
47
48 pythonImportsCheck = [ "resampy" ];
49
50 meta = {
51 description = "Efficient signal resampling";
52 homepage = "https://github.com/bmcfee/resampy";
53 license = lib.licenses.isc;
54 maintainers = [ ];
55 };
56}