1{ lib 2, buildPythonPackage 3, fetchPypi 4, isPy27 5, python 6, six 7}: 8 9buildPythonPackage rec { 10 pname = "webcolors"; 11 version = "1.11.1"; 12 disabled = isPy27; 13 14 src = fetchPypi { 15 inherit pname version; 16 sha256 = "76f360636957d1c976db7466bc71dcb713bb95ac8911944dffc55c01cb516de6"; 17 }; 18 19 propagatedBuildInputs = [ six ]; 20 21 checkPhase = '' 22 ${python.interpreter} -m unittest discover -s tests 23 ''; 24 25 meta = { 26 description = "Library for working with color names/values defined by the HTML and CSS specifications"; 27 homepage = "https://bitbucket.org/ubernostrum/webcolors/overview/"; 28 license = lib.licenses.bsd3; 29 }; 30}