python310Packages.wcag-contrast-ratio: init at 0.9

This commit is contained in:
Sandro Jäckel 2022-05-04 19:13:24 +02:00 committed by Sandro Jäckel
parent 90157969cf
commit bad010fae8
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
2 changed files with 36 additions and 0 deletions

View File

@ -0,0 +1,34 @@
{ lib
, buildPythonPackage
, fetchPypi
, hypothesis
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "wcag-contrast-ratio";
version = "0.9";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
};
checkInputs = [
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 = with maintainers; [ SuperSandro2000 ];
};
}

View File

@ -10838,6 +10838,8 @@ in {
wazeroutecalculator = callPackage ../development/python-modules/wazeroutecalculator { };
wcag-contrast-ratio = callPackage ../development/python-modules/wcag-contrast-ratio { };
wcmatch = callPackage ../development/python-modules/wcmatch { };
wcwidth = callPackage ../development/python-modules/wcwidth { };