1{ lib 2, buildPythonPackage 3, fetchPypi 4, docutils 5, lxml 6, pytestCheckHook 7, wcag-contrast-ratio 8}: 9 10let pygments = buildPythonPackage 11 rec { 12 pname = "pygments"; 13 version = "2.13.0"; 14 15 src = fetchPypi { 16 pname = "Pygments"; 17 inherit version; 18 sha256 = "sha256-VqhQiulfmOK5vfk6a+WuP32K+Fi0PgLFov8INya+QME="; 19 }; 20 21 propagatedBuildInputs = [ 22 docutils 23 ]; 24 25 # circular dependencies if enabled by default 26 doCheck = false; 27 checkInputs = [ 28 lxml 29 pytestCheckHook 30 wcag-contrast-ratio 31 ]; 32 33 disabledTestPaths = [ 34 # 5 lines diff, including one nix store path in 20000+ lines 35 "tests/examplefiles/bash/ltmain.sh" 36 ]; 37 38 pythonImportsCheck = [ "pygments" ]; 39 40 passthru.tests = { 41 check = pygments.overridePythonAttrs (_: { doCheck = true; }); 42 }; 43 44 meta = with lib; { 45 homepage = "https://pygments.org/"; 46 description = "A generic syntax highlighter"; 47 license = licenses.bsd2; 48 maintainers = with maintainers; [ SuperSandro2000 ]; 49 }; 50 }; 51in pygments