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