1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pkginfo 5, pytestCheckHook 6}: 7 8 9buildPythonPackage rec { 10 pname = "colorzero"; 11 version = "2.0"; 12 format = "setuptools"; 13 14 src = fetchFromGitHub { 15 owner = "waveform80"; 16 repo = pname; 17 rev = "refs/tags/release-${version}"; 18 hash = "sha256-0NoQsy86OHQNLZsTEuF5s2MlRUoacF28jNeHgFKAH14="; 19 }; 20 21 postPatch = '' 22 substituteInPlace setup.cfg \ 23 --replace "--cov" "" 24 ''; 25 26 nativeBuildInputs = [ 27 pkginfo 28 ]; 29 30 pythonImportsCheck = [ 31 "colorzero" 32 ]; 33 34 nativeCheckInputs = [ 35 pytestCheckHook 36 ]; 37 38 meta = with lib; { 39 description = "Yet another Python color library"; 40 homepage = "https://github.com/waveform80/colorzero"; 41 license = licenses.bsd3; 42 maintainers = with maintainers; [ hexa ]; 43 }; 44}