504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
35 lines
703 B
Nix
35 lines
703 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 = with maintainers; [ ];
|
|
};
|
|
}
|