Merge pull request #4718 from ehmry/picard
update picard 1.2->1.3, initial pkg for python-libdiscid
This commit is contained in:
commit
52017df966
|
@ -1,26 +1,17 @@
|
||||||
{ stdenv, fetchurl, pythonPackages, gettext, pyqt4
|
{ stdenv, buildPythonPackage, fetchurl, gettext
|
||||||
, pkgconfig, libdiscid, libofa, ffmpeg, chromaprint
|
, pkgconfig, libofa, ffmpeg, chromaprint
|
||||||
|
, pyqt4, mutagen, python-libdiscid
|
||||||
}:
|
}:
|
||||||
|
|
||||||
pythonPackages.buildPythonPackage rec {
|
let version = "1.3"; in
|
||||||
|
buildPythonPackage {
|
||||||
name = "picard-${version}";
|
name = "picard-${version}";
|
||||||
namePrefix = "";
|
|
||||||
version = "1.2";
|
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = "http://ftp.musicbrainz.org/pub/musicbrainz/picard/${name}.tar.gz";
|
url = "ftp://ftp.musicbrainz.org/pub/musicbrainz/picard/picard-${version}.tar.gz";
|
||||||
sha256 = "0sbsf8hzxhxcnnjqvsd6mc23lmk7w33nln0f3w72f89mjgs6pxm6";
|
sha256 = "06s90w1j29qhd931dgj752k5v4pjbvxiz6g0613xzj3ms8zsrlys";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = let
|
|
||||||
discid = "${libdiscid}/lib/libdiscid.so.0";
|
|
||||||
fpr = "${chromaprint}/bin/fpcalc";
|
|
||||||
in ''
|
|
||||||
substituteInPlace picard/disc.py --replace libdiscid.so.0 ${discid}
|
|
||||||
substituteInPlace picard/const.py \
|
|
||||||
--replace "FPCALC_NAMES = [" "FPCALC_NAMES = ['${fpr}',"
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildInputs = [
|
buildInputs = [
|
||||||
pkgconfig
|
pkgconfig
|
||||||
ffmpeg
|
ffmpeg
|
||||||
|
@ -29,19 +20,11 @@ pythonPackages.buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
pythonPackages.mutagen
|
|
||||||
pyqt4
|
pyqt4
|
||||||
libdiscid
|
mutagen
|
||||||
|
python-libdiscid
|
||||||
];
|
];
|
||||||
|
|
||||||
configurePhase = ''
|
|
||||||
python setup.py config
|
|
||||||
'';
|
|
||||||
|
|
||||||
buildPhase = ''
|
|
||||||
python setup.py build
|
|
||||||
'';
|
|
||||||
|
|
||||||
installPhase = ''
|
installPhase = ''
|
||||||
python setup.py install --prefix="$out"
|
python setup.py install --prefix="$out"
|
||||||
'';
|
'';
|
||||||
|
|
|
@ -10248,7 +10248,10 @@ let
|
||||||
|
|
||||||
pianobooster = callPackage ../applications/audio/pianobooster { };
|
pianobooster = callPackage ../applications/audio/pianobooster { };
|
||||||
|
|
||||||
picard = callPackage ../applications/audio/picard { };
|
picard = callPackage ../applications/audio/picard {
|
||||||
|
python-libdiscid = pythonPackages.discid;
|
||||||
|
mutagen = pythonPackages.mutagen;
|
||||||
|
};
|
||||||
|
|
||||||
picocom = callPackage ../tools/misc/picocom { };
|
picocom = callPackage ../tools/misc/picocom { };
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue