ansible-later: 2.0.22 -> 2.0.23
[NixPkgs.git] / pkgs / development / python-modules / wcag-contrast-ratio / default.nix
blobc7b7e9bc9e8253e879a3feef56b5e434110bc679
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , hypothesis
5 , pytestCheckHook
6 }:
8 buildPythonPackage rec {
9   pname = "wcag-contrast-ratio";
10   version = "0.9";
12   src = fetchPypi {
13     inherit pname version;
14     sha256 = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw=";
15   };
17   checkInputs = [
18     hypothesis
19     pytestCheckHook
20   ];
22   pytestFlagsArray = [
23     "test.py"
24   ];
26   pythonImportsCheck = [ "wcag_contrast_ratio" ];
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; [ SuperSandro2000 ];
33   };