2014-10-29 18:45:56 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchurl, gettext
|
|
|
|
, pkgconfig, libofa, ffmpeg, chromaprint
|
|
|
|
, pyqt4, mutagen, python-libdiscid
|
2013-08-14 18:39:35 +02:00
|
|
|
}:
|
2012-09-05 01:15:23 +02:00
|
|
|
|
2014-10-29 18:45:56 +01:00
|
|
|
let version = "1.3"; in
|
|
|
|
buildPythonPackage {
|
2012-09-05 01:15:23 +02:00
|
|
|
name = "picard-${version}";
|
2014-12-18 23:15:36 +01:00
|
|
|
namePrefix = "";
|
2012-09-05 01:15:23 +02:00
|
|
|
|
|
|
|
src = fetchurl {
|
2014-10-29 18:45:56 +01:00
|
|
|
url = "ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/picard-${version}.tar.gz";
|
|
|
|
sha256 = "06s90w1j29qhd931dgj752k5v4pjbvxiz6g0613xzj3ms8zsrlys";
|
2012-09-05 01:15:23 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [
|
|
|
|
pkgconfig
|
|
|
|
ffmpeg
|
|
|
|
libofa
|
|
|
|
gettext
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
pyqt4
|
2014-10-29 18:45:56 +01:00
|
|
|
mutagen
|
|
|
|
python-libdiscid
|
2012-09-05 01:15:23 +02:00
|
|
|
];
|
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
python setup.py install --prefix="$out"
|
|
|
|
'';
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2014-08-23 23:56:06 +02:00
|
|
|
meta = with stdenv.lib; {
|
2012-09-05 01:15:23 +02:00
|
|
|
homepage = "http://musicbrainz.org/doc/MusicBrainz_Picard";
|
|
|
|
description = "The official MusicBrainz tagger";
|
2014-08-23 23:56:06 +02:00
|
|
|
maintainers = with maintainers; [ emery ];
|
|
|
|
license = licenses.gpl2;
|
|
|
|
platforms = platforms.all;
|
2012-09-05 01:15:23 +02:00
|
|
|
};
|
|
|
|
}
|