567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
49 lines
979 B
Nix
49 lines
979 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pythonOlder,
|
|
hatchling,
|
|
hatch-vcs,
|
|
hatch-fancy-pypi-readme,
|
|
pygments,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "accessible-pygments";
|
|
version = "0.0.5";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
pname = "accessible_pygments";
|
|
inherit version;
|
|
hash = "sha256-QJGNPmorYZrUJMuR5Va9O9iGVEPZ8i8dzfeeM8gEaHI=";
|
|
};
|
|
|
|
build-system = [
|
|
hatchling
|
|
hatch-vcs
|
|
hatch-fancy-pypi-readme
|
|
];
|
|
|
|
dependencies = [ pygments ];
|
|
|
|
# Tests only execute pygments with these styles
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"a11y_pygments"
|
|
"a11y_pygments.utils"
|
|
];
|
|
|
|
meta = {
|
|
description = "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 = lib.licenses.bsd3;
|
|
maintainers = [ ];
|
|
};
|
|
}
|