1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pkginfo,
6 pytestCheckHook,
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 = [ pkginfo ];
27
28 pythonImportsCheck = [ "colorzero" ];
29
30 nativeCheckInputs = [ pytestCheckHook ];
31
32 meta = with lib; {
33 description = "Yet another Python color library";
34 homepage = "https://github.com/waveform80/colorzero";
35 license = licenses.bsd3;
36 maintainers = with maintainers; [ hexa ];
37 };
38}