summary refs log tree commit diff
path: root/pkgs/development/python-modules/ansi/default.nix
blob: 287bf13a5deed0b8ff024ba9315245c70e1aa937 (plain) (blame)
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
38
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "ansi";
  version = "0.3.6";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "tehmaze";
    repo = pname;
    rev = "${pname}-${version}";
    hash = "sha256-2gu2Dba3LOjMhbCCZrBqzlOor5KqDYThhe8OP8J3O2M=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "ansi.colour"
    "ansi.color"
  ];

  meta = with lib; {
    description = "ANSI cursor movement and graphics";
    homepage = "https://github.com/tehmaze/ansi/";
    license = licenses.mit;
  };
}