1{ lib 2, buildPythonPackage 3, fetchPypi 4, pytestCheckHook 5}: 6 7buildPythonPackage rec { 8 pname = "colour"; 9 version = "0.1.5"; 10 format = "setuptools"; 11 12 src = fetchPypi { 13 inherit pname version; 14 hash = "sha256-ryASD+/Sr+3osAH77y6p2nCtfUn6/bZIkCXa6HRcOu4="; 15 }; 16 17 patches = [ 18 # https://github.com/vaab/colour/pull/66 (but does not merge cleanly) 19 ./remove-unmaintained-d2to1.diff 20 ]; 21 22 nativeCheckInputs = [ 23 pytestCheckHook 24 ]; 25 26 pytestFlagsArray = [ 27 "--doctest-glob=\"*.rst\"" 28 "--doctest-modules" 29 ]; 30 31 pythonImportsCheck = [ 32 "colour" 33 ]; 34 35 meta = with lib; { 36 description = "Converts and manipulates common color representation (RGB, HSV, web, ...)"; 37 homepage = "https://github.com/vaab/colour"; 38 license = licenses.bsd2; 39 }; 40}