Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 hypothesis, 6 pytestCheckHook, 7}: 8 9buildPythonPackage rec { 10 pname = "wcag-contrast-ratio"; 11 version = "0.9"; 12 format = "setuptools"; 13 14 src = fetchPypi { 15 inherit pname version; 16 hash = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw="; 17 }; 18 19 nativeCheckInputs = [ 20 hypothesis 21 pytestCheckHook 22 ]; 23 24 enabledTestPaths = [ "test.py" ]; 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 = [ ]; 33 }; 34}