Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / scikits-samplerate / default.nix
blob5a437c07f46bba1cc0cfa3ae30cfd392bbdba717
1 { lib
2 , buildPythonPackage
3 , numpy
4 , libsamplerate
5 , fetchFromGitHub
6 }:
8 buildPythonPackage {
9   pname = "scikits-samplerate";
10   version = "0.3.3";
11   format = "setuptools";
13   src = fetchFromGitHub {
14     owner = "cournape";
15     repo = "samplerate";
16     rev = "a536c97eb2d6195b5f266ea3cc3a35364c4c2210";
17     hash = "sha256-7x03Q6VXfP9p8HCk15IDZ9HeqTyi5F1AlGX/otdh8VU=";
18   };
20   buildInputs =  [
21     libsamplerate
22   ];
24   propagatedBuildInputs = [
25     numpy
26   ];
28   preConfigure = ''
29      cat > site.cfg << END
30      [samplerate]
31      library_dirs=${libsamplerate.out}/lib
32      include_dirs=${lib.getDev libsamplerate}/include
33      END
34   '';
36   doCheck = false;
38   meta = with lib; {
39     homepage = "https://github.com/cournape/samplerate";
40     description = "High quality sampling rate convertion from audio data in numpy arrays";
41     license = licenses.gpl2;
42   };