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