Martin Weinelt
2023-07-28 12:15:35 +02:00
parent d37303e9b3
commit 71c4dd5581
@@ -1,8 +1,11 @@
{ lib
, buildPythonPackage
, fetchPypi
, docutils
, lxml
# build-system
, setuptools
# tests
, pytestCheckHook
, wcag-contrast-ratio
}:
@@ -10,22 +13,23 @@
let pygments = buildPythonPackage
rec {
pname = "pygments";
version = "2.14.0";
version = "2.15.1";
format = "pyproject";
src = fetchPypi {
pname = "Pygments";
inherit version;
hash = "sha256-s+0GqeismpquWm9dvniopYZV0XtDuTwHjwlN3Edq4pc=";
hash = "sha256-is5NPB3UgYlLIAX1YOrQ+fGe5k/pgzZr4aIeFx0Sd1w=";
};
propagatedBuildInputs = [
docutils
nativeBuildInputs = [
setuptools
];
# circular dependencies if enabled by default
doCheck = false;
nativeCheckInputs = [
lxml
pytestCheckHook
wcag-contrast-ratio
];
@@ -35,13 +39,16 @@ let pygments = buildPythonPackage
"tests/examplefiles/bash/ltmain.sh"
];
pythonImportsCheck = [ "pygments" ];
pythonImportsCheck = [
"pygments"
];
passthru.tests = {
check = pygments.overridePythonAttrs (_: { doCheck = true; });
};
meta = with lib; {
changelog = "https://github.com/pygments/pygments/releases/tag/${version}";
homepage = "https://pygments.org/";
description = "A generic syntax highlighter";
mainProgram = "pygmentize";