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:
aszlig 2014-12-30 22:33:55 +01:00 committed by Peter Simons
parent d01a381e41
commit 51eacc8a96

View file

@ -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";