1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 requests,
6 audioread,
7 pkgs,
8}:
9
10buildPythonPackage rec {
11 pname = "pyacoustid";
12 version = "1.3.0";
13 format = "setuptools";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-X09IcZHBnruQgnCxt7UpfxMtozKxVouWqRRXTAee0Xc=";
18 };
19
20 propagatedBuildInputs = [
21 requests
22 audioread
23 ];
24
25 postPatch = ''
26 sed -i \
27 -e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \
28 acoustid.py
29 '';
30
31 # package has no tests
32 doCheck = false;
33
34 pythonImportsCheck = [ "acoustid" ];
35
36 meta = with lib; {
37 description = "Bindings for Chromaprint acoustic fingerprinting";
38 homepage = "https://github.com/sampsyo/pyacoustid";
39 license = licenses.mit;
40 maintainers = [ ];
41 };
42}