python310Packages.wcag-contrast-ratio: init at 0.9

This commit is contained in:
Sandro Jäckel
2022-05-04 23:26:38 +02:00
committed by Sandro Jäckel
parent 90157969cf
commit bad010fae8
2 changed files with 36 additions and 0 deletions
@@ -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 ];
};
}
+2
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 { };