2021-01-11 07:54:33 +00:00
|
|
|
{ lib, stdenv
|
2018-10-26 02:56:14 +01:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
|
|
|
, audioread
|
|
|
|
, pkgs
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyacoustid";
|
2020-05-24 01:18:54 +01:00
|
|
|
version = "1.2.0";
|
2018-10-26 02:56:14 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-05-24 01:18:54 +01:00
|
|
|
sha256 = "0c3dsnfyldnsmyzczp5s5aqvbzcn360s0h4l3gm3k53lg57f762z";
|
2018-10-26 02:56:14 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests audioread ];
|
|
|
|
|
|
|
|
postPatch = ''
|
|
|
|
sed -i \
|
|
|
|
-e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \
|
|
|
|
acoustid.py
|
|
|
|
'';
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2018-10-26 02:56:14 +01:00
|
|
|
description = "Bindings for Chromaprint acoustic fingerprinting";
|
|
|
|
homepage = "https://github.com/sampsyo/pyacoustid";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
|
|
|
|
}
|