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