1{ lib 2, buildPythonPackage 3, fetchPypi 4, requests 5, audioread 6, pkgs 7}: 8 9buildPythonPackage rec { 10 pname = "pyacoustid"; 11 version = "1.3.0"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-X09IcZHBnruQgnCxt7UpfxMtozKxVouWqRRXTAee0Xc="; 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}