mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-28 16:42:09 +00:00
ced21f5e1a
The `buildPython*` function computes name from `pname` and `version`. This change removes `name` attribute from all expressions in `pkgs/development/python-modules`. While at it, some other minor changes were made as well, such as replacing `fetchurl` calls with `fetchPypi`.
36 lines
839 B
Nix
36 lines
839 B
Nix
{ stdenv, python2Packages, fetchurl, gettext, chromaprint }:
|
|
|
|
let
|
|
pythonPackages = python2Packages;
|
|
in pythonPackages.buildPythonApplication rec {
|
|
pname = "picard";
|
|
version = "1.4.2";
|
|
|
|
src = fetchurl {
|
|
url = "http://ftp.musicbrainz.org/pub/musicbrainz/picard/picard-${version}.tar.gz";
|
|
sha256 = "0d12k40d9fbcn801gp5zdsgvjdrh4g97vda3ga16rmmvfwwfxbgh";
|
|
};
|
|
|
|
buildInputs = [ gettext ];
|
|
|
|
propagatedBuildInputs = with pythonPackages; [
|
|
pyqt4
|
|
mutagen
|
|
discid
|
|
];
|
|
|
|
installPhase = ''
|
|
python setup.py install --prefix="$out"
|
|
'';
|
|
|
|
doCheck = false;
|
|
|
|
meta = with stdenv.lib; {
|
|
homepage = http://musicbrainz.org/doc/MusicBrainz_Picard;
|
|
description = "The official MusicBrainz tagger";
|
|
maintainers = with maintainers; [ ehmry ];
|
|
license = licenses.gpl2;
|
|
platforms = platforms.all;
|
|
};
|
|
}
|