pythonPackages.pygments: move expression to own file
This commit is contained in:
parent
d316088c5b
commit
2f3cfe696b
28
pkgs/development/python-modules/Pygments/default.nix
Normal file
28
pkgs/development/python-modules/Pygments/default.nix
Normal file
@ -0,0 +1,28 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, docutils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Pygments";
|
||||
version = "2.2.0";
|
||||
name = "${pname}-${version}";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ docutils ];
|
||||
|
||||
# Circular dependency with sphinx
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = http://pygments.org/;
|
||||
description = "A generic syntax highlighter";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ nckx garbas ];
|
||||
};
|
||||
}
|
@ -19902,30 +19902,10 @@ in {
|
||||
};
|
||||
};
|
||||
|
||||
pygments = buildPythonPackage rec {
|
||||
version = "2.2.0";
|
||||
name = "Pygments-${version}";
|
||||
|
||||
src = pkgs.fetchurl {
|
||||
url = "mirror://pypi/P/Pygments/${name}.tar.gz";
|
||||
sha256 = "1k78qdvir1yb1c634nkv6rbga8wv4289xarghmsbbvzhvr311bnv";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = with self; [ docutils ];
|
||||
|
||||
# Circular dependency with sphinx
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = http://pygments.org/;
|
||||
description = "A generic syntax highlighter";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ nckx garbas ];
|
||||
};
|
||||
};
|
||||
pygments = callPackage ../development/python-modules/Pygments { };
|
||||
|
||||
# For Pelican 3.6.3
|
||||
pygments_2_0 = self.pygments.override rec {
|
||||
pygments_2_0 = self.pygments.overrideAttrs( oldAttrs: rec {
|
||||
version = "2.0.2";
|
||||
name = "Pygments-${version}";
|
||||
|
||||
@ -19933,7 +19913,7 @@ in {
|
||||
url = "mirror://pypi/P/Pygments/${name}.tar.gz";
|
||||
sha256 = "7320919084e6dac8f4540638a46447a3bd730fca172afc17d2c03eed22cf4f51";
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
pygpgme = buildPythonPackage rec {
|
||||
version = "0.3";
|
||||
|
Loading…
Reference in New Issue
Block a user