1{ lib
2, buildPythonPackage
3, fetchPypi
4, hypothesis
5, pytestCheckHook
6}:
7
8buildPythonPackage rec {
9 pname = "wcag-contrast-ratio";
10 version = "0.9";
11
12 src = fetchPypi {
13 inherit pname version;
14 hash = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
15 };
16
17 nativeCheckInputs = [
18 hypothesis
19 pytestCheckHook
20 ];
21
22 pytestFlagsArray = [
23 "test.py"
24 ];
25
26 pythonImportsCheck = [ "wcag_contrast_ratio" ];
27
28 meta = with lib; {
29 description = "Library for computing contrast ratios, as required by WCAG 2.0";
30 homepage = "https://github.com/gsnedders/wcag-contrast-ratio";
31 license = licenses.mit;
32 maintainers = with maintainers; [ ];
33 };
34}