1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 pythonOlder, 6 unittestCheckHook, 7 setuptools, 8}: 9 10buildPythonPackage rec { 11 pname = "webcolors"; 12 version = "1.13"; 13 format = "pyproject"; 14 15 disabled = pythonOlder "3.7"; 16 17 src = fetchPypi { 18 inherit pname version; 19 hash = "sha256-wiW2dMg/qSO+k9I1MwzgMANz0CiFzvIyOIE7DVZoMEo="; 20 }; 21 22 nativeBuildInputs = [ setuptools ]; 23 24 nativeCheckInputs = [ unittestCheckHook ]; 25 26 unittestFlagsArray = [ 27 "-s" 28 "tests" 29 ]; 30 31 pythonImportsCheck = [ "webcolors" ]; 32 33 meta = with lib; { 34 description = "Library for working with color names/values defined by the HTML and CSS specifications"; 35 homepage = "https://github.com/ubernostrum/webcolors"; 36 license = licenses.bsd3; 37 maintainers = with maintainers; [ ]; 38 }; 39}