1{ stdenv
2, buildPythonPackage
3, fetchgit
4, numpy
5, pkgs
6}:
7
8buildPythonPackage rec {
9 pname = "scikits.samplerate";
10 version = "0.3.3";
11
12 src = pkgs.fetchgit {
13 url = https://github.com/cournape/samplerate;
14 rev = "a536c97eb2d6195b5f266ea3cc3a35364c4c2210";
15 sha256 = "0mgic7bs5zv5ji05vr527jlxxlb70f9dg93hy1lzyz2plm1kf7gg";
16 };
17
18 buildInputs = [ pkgs.libsamplerate ];
19 propagatedBuildInputs = [ numpy ];
20
21 preConfigure = ''
22 cat > site.cfg << END
23 [samplerate]
24 library_dirs=${pkgs.libsamplerate.out}/lib
25 include_dirs=${pkgs.libsamplerate.dev}/include
26 END
27 '';
28
29 doCheck = false;
30
31 meta = with stdenv.lib; {
32 homepage = https://github.com/cournape/samplerate;
33 description = "High quality sampling rate convertion from audio data in numpy arrays";
34 license = licenses.gpl2;
35 };
36
37}