Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.03 32 lines 656 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.1.5"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "efb6337a470c9301a108a539af7b775678ff67aa63944e9e04ce4216676cc777"; 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}