Merge pull request #307098 from r-ryantm/auto-update/cilium-cli
[NixPkgs.git] / pkgs / development / python-modules / colorful / default.nix
blob9deae7c071fc9c0f09e3f3952025439486a7c3c7
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , pytestCheckHook
5 , pythonOlder
6 }:
8 buildPythonPackage rec {
9   pname = "colorful";
10   version = "0.5.6";
11   format = "setuptools";
13   disabled = pythonOlder "3.7";
15   src = fetchFromGitHub {
16     owner = "timofurrer";
17     repo = pname;
18     rev = "refs/tags/v${version}";
19     hash = "sha256-8rHJIsHiyfjmjlGiEyrzvEwKgi1kP4Njm731mlFDMIU=";
20   };
22   nativeCheckInputs = [
23     pytestCheckHook
24   ];
26   pythonImportsCheck = [
27     "colorful"
28   ];
30   meta = with lib; {
31     description = "Library for terminal string styling";
32     homepage = "https://github.com/timofurrer/colorful";
33     changelog = "https://github.com/timofurrer/colorful/releases/tag/v${version}";
34     license = licenses.mit;
35     maintainers = with maintainers; [ kalbasit ];
36   };