python.pkgs.pygments: fixup

This commit is contained in:
Frederik Rietdijk 2020-06-07 11:25:20 +02:00
parent 9a49beb08d
commit 535ae9d44e
2 changed files with 31 additions and 1 deletions

View 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; [ ];
};
}

View File

@ -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 { };