forked from mirrors/nixpkgs
python.pkgs.pygments: fixup
This commit is contained in:
parent
9a49beb08d
commit
535ae9d44e
27
pkgs/development/python-modules/Pygments/2_5.nix
Normal file
27
pkgs/development/python-modules/Pygments/2_5.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchPypi
|
||||
, docutils
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "Pygments";
|
||||
version = "2.5.2";
|
||||
|
||||
src = fetchPypi {
|
||||
inherit pname version;
|
||||
sha256 = "98c8aa5a9f778fcd1026a17361ddaf7330d1b7c62ae97c3bb0ae73e0b9b6b0fe";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [ docutils ];
|
||||
|
||||
# Circular dependency with sphinx
|
||||
doCheck = false;
|
||||
|
||||
meta = {
|
||||
homepage = "https://pygments.org/";
|
||||
description = "A generic syntax highlighter";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ ];
|
||||
};
|
||||
}
|
|
@ -5267,7 +5267,10 @@ in {
|
|||
|
||||
pyglet = callPackage ../development/python-modules/pyglet {};
|
||||
|
||||
pygments = callPackage ../development/python-modules/Pygments { };
|
||||
pygments = if isPy3k then
|
||||
callPackage ../development/python-modules/Pygments { }
|
||||
else
|
||||
callPackage ../development/python-modules/Pygments/2_5.nix { };
|
||||
|
||||
pygpgme = callPackage ../development/python-modules/pygpgme { };
|
||||
|
||||
|
|
Loading…
Reference in a new issue