depot/third_party/nixpkgs/pkgs/development/python-modules/wcag-contrast-ratio/default.nix
Default email 5ca88bfbb9 Project import generated by Copybara.
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
2024-07-31 10:19:44 +00:00

34 lines
686 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
hypothesis,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "wcag-contrast-ratio";
version = "0.9";
format = "setuptools";
src = fetchPypi {
inherit pname version;
hash = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
};
nativeCheckInputs = [
hypothesis
pytestCheckHook
];
pytestFlagsArray = [ "test.py" ];
pythonImportsCheck = [ "wcag_contrast_ratio" ];
meta = with lib; {
description = "Library for computing contrast ratios, as required by WCAG 2.0";
homepage = "https://github.com/gsnedders/wcag-contrast-ratio";
license = licenses.mit;
maintainers = [ ];
};
}