1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonOlder
5, pygments
6}:
7
8buildPythonPackage rec {
9 pname = "accessible-pygments";
10 version = "0.0.4";
11 format = "setuptools";
12
13 disabled = pythonOlder "3.7";
14
15 src = fetchPypi {
16 inherit pname version;
17 hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4=";
18 };
19
20 propagatedBuildInputs = [
21 pygments
22 ];
23
24 # Tests only execute pygments with these styles
25 doCheck = false;
26
27 pythonImportsCheck = [
28 "a11y_pygments"
29 "a11y_pygments.utils"
30 ];
31
32 meta = with lib; {
33 description = "A collection of accessible pygments styles";
34 homepage = "https://github.com/Quansight-Labs/accessible-pygments";
35 changelog = "https://github.com/Quansight-Labs/accessible-pygments/raw/v${version}/CHANGELOG.md";
36 license = licenses.bsd3;
37 maintainers = with maintainers; [ marsam ];
38 };
39}