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