mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-24 14:43:37 +00:00
40 lines
862 B
Nix
40 lines
862 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchPypi
|
|
, pythonOlder
|
|
, pygments
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "accessible-pygments";
|
|
version = "0.0.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-57V6mxWVjpYBx+nrB6RAyBMoNUWiCXPyV0pfRT0OlT4=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|