1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5}:
6
7buildPythonPackage rec {
8 pname = "colorful";
9 version = "0.5.4";
10
11 # No tests in the Pypi package.
12 src = fetchFromGitHub {
13 owner = "timofurrer";
14 repo = pname;
15 rev = "v${version}";
16 sha256 = "1fcz5v8b318a3dsdha4c874jsf3wmcw3f25bv2csixclyzacli98";
17 };
18
19 checkInputs = [ pytestCheckHook ];
20
21 meta = with lib; {
22 description = "Terminal string styling done right, in Python.";
23 homepage = "https://github.com/timofurrer/colorful";
24 license = licenses.mit;
25 maintainers = with maintainers; [ kalbasit ];
26 };
27}