python: Add pyacoustid and dependencies.
We're going to need this for fingerprinting support in beets. Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
d01a381e41
commit
51eacc8a96
|
@ -531,6 +531,21 @@ let
|
|||
};
|
||||
});
|
||||
|
||||
audioread = buildPythonPackage rec {
|
||||
name = "audioread-1.2.1";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/a/audioread/${name}.tar.gz";
|
||||
md5 = "01a80357f38dbd9bf8d7403802df89ac";
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Cross-platform audio decoding";
|
||||
homepage = "https://github.com/sampsyo/audioread";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
};
|
||||
|
||||
autopep8 = buildPythonPackage (rec {
|
||||
name = "autopep8-1.0.4";
|
||||
|
||||
|
@ -6946,6 +6961,30 @@ let
|
|||
};
|
||||
|
||||
|
||||
pyacoustid = buildPythonPackage rec {
|
||||
name = "pyacoustid-1.1.0";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/p/pyacoustid/${name}.tar.gz";
|
||||
md5 = "b27c714d530300b917eb869726334226";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ requests audioread ];
|
||||
|
||||
postPatch = ''
|
||||
sed -i \
|
||||
-e '/^FPCALC_COMMAND *=/s|=.*|= "${pkgs.chromaprint}/bin/fpcalc"|' \
|
||||
acoustid.py
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Bindings for Chromaprint acoustic fingerprinting";
|
||||
homepage = "https://github.com/sampsyo/pyacoustid";
|
||||
license = stdenv.lib.licenses.mit;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
pyalgotrade = buildPythonPackage {
|
||||
name = "pyalogotrade-0.16";
|
||||
|
||||
|
|
Loading…
Reference in a new issue