From e5f1812bd5157e68a064ae425b56f80d926d3209 Mon Sep 17 00:00:00 2001 From: Mario Rodas Date: Tue, 21 Feb 2023 04:20:00 +0000 Subject: [PATCH] python310Packages.accessible-pygments: init at 0.0.3 --- .../accessible-pygments/default.nix | 39 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 41 insertions(+) create mode 100644 pkgs/development/python-modules/accessible-pygments/default.nix diff --git a/pkgs/development/python-modules/accessible-pygments/default.nix b/pkgs/development/python-modules/accessible-pygments/default.nix new file mode 100644 index 000000000000..0b5c39117cc7 --- /dev/null +++ b/pkgs/development/python-modules/accessible-pygments/default.nix @@ -0,0 +1,39 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pythonOlder +, pygments +}: + +buildPythonPackage rec { + pname = "accessible-pygments"; + version = "0.0.3"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-CRe1B2RqazOT60kJGmJQb2sqOTX12V5NEkncUF+KTq4="; + }; + + propagatedBuildInputs = [ + pygments + ]; + + # Tests only execute pygments with these styles + doCheck = false; + + pythonImportsCheck = [ + "a11y_pygments" + "a11y_pygments.utils" + ]; + + meta = with lib; { + description = "A collection of accessible pygments styles"; + homepage = "https://github.com/Quansight-Labs/accessible-pygments"; + changelog = "https://github.com/Quansight-Labs/accessible-pygments/raw/v${version}/CHANGELOG.md"; + license = licenses.bsd3; + maintainers = with maintainers; [ marsam ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index f09a8eb1a188..52125dcc054d 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -20,6 +20,8 @@ self: super: with self; { absl-py = callPackage ../development/python-modules/absl-py { }; + accessible-pygments = callPackage ../development/python-modules/accessible-pygments { }; + accuweather = callPackage ../development/python-modules/accuweather { }; accupy = callPackage ../development/python-modules/accupy { };