pythonPackages.mutagen: move to a separate file
This commit is contained in:
parent
454ef67872
commit
6a1198de7e
2 changed files with 29 additions and 20 deletions
28
pkgs/development/python-modules/mutagen/default.nix
Normal file
28
pkgs/development/python-modules/mutagen/default.nix
Normal file
|
@ -0,0 +1,28 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, pytest
|
||||
, pkgs
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "mutagen";
|
||||
version = "1.36";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1kabb9b81hgvpd3wcznww549vss12b1xlvpnxg1r6n4c7gikgvnp";
|
||||
};
|
||||
|
||||
checkInputs = [
|
||||
pkgs.faad2 pkgs.flac pkgs.vorbis-tools pkgs.liboggz
|
||||
pkgs.glibcLocales pytest
|
||||
];
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python multimedia tagging library";
|
||||
homepage = https://mutagen.readthedocs.io/;
|
||||
license = licenses.lgpl2;
|
||||
};
|
||||
}
|
|
@ -8136,26 +8136,7 @@ in {
|
|||
};
|
||||
};
|
||||
|
||||
mutagen = buildPythonPackage (rec {
|
||||
name = "mutagen-1.36";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/m/mutagen/${name}.tar.gz";
|
||||
sha256 = "1kabb9b81hgvpd3wcznww549vss12b1xlvpnxg1r6n4c7gikgvnp";
|
||||
};
|
||||
|
||||
# Needed for tests only
|
||||
buildInputs = with self; [ pkgs.faad2 pkgs.flac pkgs.vorbis-tools pkgs.liboggz
|
||||
pkgs.glibcLocales pytest
|
||||
];
|
||||
LC_ALL = "en_US.UTF-8";
|
||||
|
||||
meta = {
|
||||
description = "Python multimedia tagging library";
|
||||
homepage = http://code.google.com/p/mutagen;
|
||||
license = licenses.lgpl2;
|
||||
};
|
||||
});
|
||||
mutagen = callPackage ../development/python-modules/mutagen { };
|
||||
|
||||
|
||||
muttils = buildPythonPackage (rec {
|
||||
|
|
Loading…
Reference in a new issue