summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/tcolorpy/default.nix
blob: 52a7c43c0095cb17afe5fce8bb647b60f72cf25b (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
28
29
30
31
32
33
34
35
36
37
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  pytestCheckHook,
  setuptools,
  setuptools-scm,
}:

buildPythonPackage rec {
  pname = "tcolorpy";
  version = "0.1.7";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "thombashi";
    repo = "tcolorpy";
    tag = "v${version}";
    hash = "sha256-0AXpwRQgBisO4360J+Xd4+EWzDtDJ64UpSUmDnSYjKE=";
  };

  build-system = [
    setuptools
    setuptools-scm
  ];

  pythonImportsCheck = [ "tcolorpy" ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    homepage = "https://github.com/thombashi/tcolorpy";
    description = "Library to apply true color for terminal text";
    maintainers = [ ];
    license = lib.licenses.mit;
  };
}