1{ lib 2, buildPythonPackage 3, numpy 4, libsamplerate 5, fetchFromGitHub 6}: 7 8buildPythonPackage { 9 pname = "scikits-samplerate"; 10 version = "0.3.3"; 11 format = "setuptools"; 12 13 src = fetchFromGitHub { 14 owner = "cournape"; 15 repo = "samplerate"; 16 rev = "a536c97eb2d6195b5f266ea3cc3a35364c4c2210"; 17 hash = "sha256-7x03Q6VXfP9p8HCk15IDZ9HeqTyi5F1AlGX/otdh8VU="; 18 }; 19 20 buildInputs = [ 21 libsamplerate 22 ]; 23 24 propagatedBuildInputs = [ 25 numpy 26 ]; 27 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 ''; 35 36 doCheck = false; 37 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 }; 43 44}