35 lines
697 B
Nix
35 lines
697 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, requests
|
|
, audioread
|
|
, pkgs
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyacoustid";
|
|
version = "1.1.0";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
sha256 = "0117039cb116af245e6866e8e8bf3c9c8b2853ad087142bd0c2dfc0acc09d452";
|
|
};
|
|
|
|
propagatedBuildInputs = [ requests audioread ];
|
|
|
|
patches = [ ./pyacoustid-py3.patch ];
|
|
|
|
postPatch = ''
|
|
sed -i \
|
|
-e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \
|
|
acoustid.py
|
|
'';
|
|
|
|
meta = with stdenv.lib; {
|
|
description = "Bindings for Chromaprint acoustic fingerprinting";
|
|
homepage = "https://github.com/sampsyo/pyacoustid";
|
|
license = licenses.mit;
|
|
};
|
|
|
|
}
|