aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/development/python-modules/colorful/default.nix
blob: c9378e329a32181c1a8e9d33f65be32b4b9f8317 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "colorful";
  version = "0.5.4";

  # No tests in the Pypi package.
  src = fetchFromGitHub {
    owner = "timofurrer";
    repo = pname;
    rev = "v${version}";
    sha256 = "1fcz5v8b318a3dsdha4c874jsf3wmcw3f25bv2csixclyzacli98";
  };

  checkInputs = [ pytestCheckHook ];

  meta = with lib; {
    description = "Terminal string styling done right, in Python.";
    homepage = "http://github.com/timofurrer/colorful";
    license = licenses.mit;
    maintainers = with maintainers; [ kalbasit ];
  };
}