at 23.05-pre 34 lines 690 B view raw
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 sha256 = "sha256-aRkrjlwKfQ3F/xGH7rPjmBQWM6S95RxpyH9Y/oftNhw="; 15 }; 16 17 checkInputs = [ 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; [ SuperSandro2000 ]; 33 }; 34}