Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / wcag-contrast-ratio / default.nix
blob6a047c271658ae9fc128f949da6daebd9b831c48
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , hypothesis
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "wcag-contrast-ratio";
10   version = "0.9";
11   format = "setuptools";
13   src = fetchPypi {
14     inherit pname version;
15     hash = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
16   };
18   nativeCheckInputs = [
19     hypothesis
20     pytestCheckHook
21   ];
23   pytestFlagsArray = [
24     "test.py"
25   ];
27   pythonImportsCheck = [ "wcag_contrast_ratio" ];
29   meta = with lib; {
30     description = "Library for computing contrast ratios, as required by WCAG 2.0";
31     homepage = "https://github.com/gsnedders/wcag-contrast-ratio";
32     license = licenses.mit;
33     maintainers = with maintainers; [ ];
34   };