about summary refs log tree commit diff
path: root/pkgs/development/python-modules/audiotools/default.nix
blob: 6d85e2b18483ab6bc5772b8575a7aa202b2bd687 (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
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, stdenv
, AudioToolbox
, AudioUnit
, CoreServices
}:

buildPythonPackage rec {
  pname = "audiotools";
  version = "3.1.1";
  pyproject = true;

  build-system = [ setuptools ];

  buildInputs = lib.optionals stdenv.isDarwin [
    AudioToolbox
    AudioUnit
    CoreServices
  ];

  src = fetchFromGitHub {
    owner = "tuffy";
    repo = "python-audio-tools";
    rev = "v${version}";
    hash = "sha256-y+EiK9BktyTWowOiJvOb2YjtbPa7R62Wb5zinkyt1OM=";
  };

  meta = with lib; {
    description = "Utilities and Python modules for handling audio";
    homepage = "https://audiotools.sourceforge.net/";
    license = licenses.gpl2Plus;
    maintainers = with maintainers; [ ];
  };
}