diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/asteroid-filterbanks/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/asteroid-filterbanks/default.nix | 54 |
1 files changed, 54 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/asteroid-filterbanks/default.nix b/nixpkgs/pkgs/development/python-modules/asteroid-filterbanks/default.nix new file mode 100644 index 000000000000..3a22c0fb5132 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/asteroid-filterbanks/default.nix @@ -0,0 +1,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 ]; + }; +} |