depot/third_party/nixpkgs/pkgs/development/python-modules/pyacoustid/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

42 lines
781 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
requests,
audioread,
pkgs,
}:
buildPythonPackage rec {
pname = "pyacoustid";
version = "1.3.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-X09IcZHBnruQgnCxt7UpfxMtozKxVouWqRRXTAee0Xc=";
};
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 = [ ];
};
}