1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, audioread 6, pkgs 7}: 8 9buildPythonPackage rec { 10 pname = "pyacoustid"; 11 version = "1.2.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "c279d9c30a7f481f1420fc37db65833b5f9816cd364dc2acaa93a11c482d4141"; 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 # package has no tests 27 doCheck = false; 28 29 pythonImportsCheck = [ "acoustid" ]; 30 31 meta = with lib; { 32 description = "Bindings for Chromaprint acoustic fingerprinting"; 33 homepage = "https://github.com/sampsyo/pyacoustid"; 34 license = licenses.mit; 35 maintainers = with maintainers; [ ]; 36 }; 37}