My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/pyacoustid/default.nix

37 lines
771 B

{ lib
, buildPythonPackage
, fetchPypi
, requests
, audioread
, pkgs
}:
buildPythonPackage rec {
pname = "pyacoustid";
version = "1.2.2";
src = fetchPypi {
inherit pname version;
sha256 = "c279d9c30a7f481f1420fc37db65833b5f9816cd364dc2acaa93a11c482d4141";
};
propagatedBuildInputs = [ requests audioread ];
postPatch = ''
sed -i \
-e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \
acoustid.py
'';
# package has no tests
doCheck = false;
pythonImportsCheck = [ "acoustid" ];
meta = with lib; {
description = "Bindings for Chromaprint acoustic fingerprinting";
homepage = "https://github.com/sampsyo/pyacoustid";
license = licenses.mit;
maintainers = with maintainers; [ ];
};
}