Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09-beta 32 lines 644 B view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, requests 5, audioread 6, pkgs 7}: 8 9buildPythonPackage rec { 10 pname = "pyacoustid"; 11 version = "1.2.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "0c3dsnfyldnsmyzczp5s5aqvbzcn360s0h4l3gm3k53lg57f762z"; 16 }; 17 18 propagatedBuildInputs = [ requests audioread ]; 19 20 postPatch = '' 21 sed -i \ 22 -e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \ 23 acoustid.py 24 ''; 25 26 meta = with stdenv.lib; { 27 description = "Bindings for Chromaprint acoustic fingerprinting"; 28 homepage = "https://github.com/sampsyo/pyacoustid"; 29 license = licenses.mit; 30 }; 31 32}