summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/asciimatics/default.nix
blob: 9783e9a54e874f37f2001f7f0ef224b97ec0909c (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
38
39
40
41
42
43
44
45
46
{
  lib,
  buildPythonPackage,
  fetchPypi,
  pillow,
  pyfiglet,
  pytestCheckHook,
  setuptools-scm,
  wcwidth,
}:

buildPythonPackage rec {
  pname = "asciimatics";
  version = "1.15.0";
  pyproject = true;

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho=";
  };

  build-system = [ setuptools-scm ];

  dependencies = [
    pyfiglet
    pillow
    wcwidth
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [
    "asciimatics.effects"
    "asciimatics.renderers"
    "asciimatics.scene"
    "asciimatics.screen"
  ];

  meta = {
    description = "Module to create full-screen text UIs (from interactive forms to ASCII animations)";
    homepage = "https://github.com/peterbrittain/asciimatics";
    changelog = "https://github.com/peterbrittain/asciimatics/releases/tag/${version}";
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ cmcdragonkai ];
  };
}