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