2017-05-07 21:23:32 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, docutils
|
2021-03-27 15:50:34 +00:00
|
|
|
, pytestCheckHook
|
|
|
|
, doCheck ? true
|
2017-05-07 21:23:32 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "Pygments";
|
2021-02-20 09:09:13 +00:00
|
|
|
version = "2.7.4";
|
2017-05-07 21:23:32 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-02-20 09:09:13 +00:00
|
|
|
sha256 = "df49d09b498e83c1a73128295860250b0b7edd4c723a32e9bc0d295c7c2ec337";
|
2017-05-07 21:23:32 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ docutils ];
|
|
|
|
|
2021-03-27 15:50:34 +00:00
|
|
|
inherit doCheck;
|
|
|
|
checkInputs = [ pytestCheckHook ];
|
2017-05-07 21:23:32 +01:00
|
|
|
|
|
|
|
meta = {
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://pygments.org/";
|
2017-05-07 21:23:32 +01:00
|
|
|
description = "A generic syntax highlighter";
|
|
|
|
license = lib.licenses.bsd2;
|
2019-07-03 10:27:39 +01:00
|
|
|
maintainers = with lib.maintainers; [ ];
|
2017-05-07 21:23:32 +01:00
|
|
|
};
|
2019-07-03 10:27:39 +01:00
|
|
|
}
|