11 buildPythonPackage rec {
14 format = "setuptools";
16 src = fetchFromGitHub {
18 repo = "python-samplerate";
19 rev = "refs/tags/${version}";
20 hash = "sha256-lHZ9SVnKcsEsnKYXR/QocGbKPEoA7yCZxXvrNPeH1rA=";
24 substituteInPlace setup.py \
25 --replace ", 'pytest-runner'" ""
27 substituteInPlace samplerate/lowlevel.py --replace \
28 "lib_filename = _find_library('samplerate')" \
29 'lib_filename = "${libsamplerate.out}/lib/libsamplerate${stdenv.hostPlatform.extensions.sharedLibrary}"'
32 propagatedBuildInputs = [
37 pythonImportsCheck = [
50 description = "Python bindings for libsamplerate based on CFFI and NumPy";
51 homepage = "https://github.com/tuxu/python-samplerate";
52 changelog = "https://github.com/tuxu/python-samplerate/releases/tag/${version}";
53 license = licenses.mit;
54 maintainers = with maintainers; [ hexa ];