My personal project and infrastructure archive
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
nomicon/pkgs/development/python-modules/wcag-contrast-ratio/default.nix

34 lines
690 B

{ 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 ];
};
}