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

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

  src = fetchFromGitHub {
    owner = "tehmaze";
    repo = pname;
    rev = "refs/tags/ansi-${version}";
    hash = "sha256-PmgB1glksu4roQeZ1o7uilMJNm9xaYqw680N2z+tUUM=";
  };

  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;
  };
}