about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/asteroid-filterbanks/default.nix
blob: 3a22c0fb5132e74a43b0cac6907e2d717d60eeac (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, wheel
, black
, codecov
, coverage
, librosa
, numpy
, pre-commit
, pytest
, scipy
, torch
}:

buildPythonPackage rec {
  pname = "asteroid-filterbanks";
  version = "0.4.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "asteroid-team";
    repo = "asteroid-filterbanks";
    rev = "v${version}";
    hash = "sha256-Z5M2Xgj83lzqov9kCw/rkjJ5KXbjuP+FHYCjhi5nYFE=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  propagatedBuildInputs = [
    black
    codecov
    coverage
    librosa
    numpy
    pre-commit
    pytest
    scipy
    torch
  ];

  pythonImportsCheck = [ "asteroid_filterbanks" ];

  meta = with lib; {
    description = "The PyTorch-based audio source separation toolkit for researchers";
    homepage = "https://github.com/asteroid-team/asteroid-filterbanks";
    license = licenses.mit;
    maintainers = with maintainers; [ matthewcroughan ];
  };
}