pythonPackages.pyacoustid: refactor move to python-modules
This commit is contained in:
committed by
Frederik Rietdijk
parent
51a75d353b
commit
098c097190
34
pkgs/development/python-modules/pyacoustid/default.nix
Normal file
34
pkgs/development/python-modules/pyacoustid/default.nix
Normal file
@@ -0,0 +1,34 @@
|
||||
{ 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;
|
||||
};
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user