2012-09-05 01:15:23 +02:00
|
|
|
{ stdenv, fetchurl, pythonPackages, gettext, pyqt4
|
2013-08-14 18:39:35 +02:00
|
|
|
, pkgconfig, libdiscid, libofa, ffmpeg, acoustidFingerprinter
|
|
|
|
}:
|
2012-09-05 01:15:23 +02:00
|
|
|
|
|
|
|
pythonPackages.buildPythonPackage rec {
|
|
|
|
name = "picard-${version}";
|
|
|
|
namePrefix = "";
|
2013-08-14 12:54:49 +02:00
|
|
|
version = "1.2";
|
2012-09-05 01:15:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
|
|
|
url = "http://ftp.musicbrainz.org/pub/musicbrainz/picard/${name}.tar.gz";
|
2013-08-14 12:54:49 +02:00
|
|
|
md5 = "d1086687b7f7b0d359a731b1a25e7b66";
|
2012-09-05 01:15:23 +02:00
|
|
|
};
|
|
|
|
|
2013-08-14 18:39:35 +02:00
|
|
|
postPatch = let
|
|
|
|
fpr = "${acoustidFingerprinter}/bin/acoustid_fpcalc";
|
|
|
|
in ''
|
|
|
|
sed -ri -e 's|(TextOption.*"acoustid_fpcalc"[^"]*")[^"]*|\1${fpr}|' \
|
|
|
|
picard/ui/options/fingerprinting.py
|
|
|
|
'';
|
|
|
|
|
2012-09-05 01:15:23 +02:00
|
|
|
buildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
ffmpeg
|
|
|
|
libofa
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pythonPackages.mutagen
|
|
|
|
pyqt4
|
|
|
|
libdiscid
|
|
|
|
];
|
|
|
|
|
|
|
|
configurePhase = ''
|
|
|
|
python setup.py config
|
|
|
|
'';
|
|
|
|
|
|
|
|
buildPhase = ''
|
|
|
|
python setup.py build
|
|
|
|
'';
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python setup.py install --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
|
|
|
meta = {
|
|
|
|
homepage = "http://musicbrainz.org/doc/MusicBrainz_Picard";
|
|
|
|
description = "The official MusicBrainz tagger";
|
|
|
|
license = stdenv.lib.licenses.gpl2;
|
|
|
|
};
|
|
|
|
}
|