1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 pillow,
6 pyfiglet,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools-scm,
10 wcwidth,
11}:
12
13buildPythonPackage rec {
14 pname = "asciimatics";
15 version = "1.15.0";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-z905gEJydRnYtz5iuO+CwL7P7U60IImcO5bJjQuWgho=";
23 };
24
25 build-system = [ setuptools-scm ];
26
27 dependencies = [
28 pyfiglet
29 pillow
30 wcwidth
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [
36 "asciimatics.effects"
37 "asciimatics.renderers"
38 "asciimatics.scene"
39 "asciimatics.screen"
40 ];
41
42 meta = with lib; {
43 description = "Module to create full-screen text UIs (from interactive forms to ASCII animations)";
44 homepage = "https://github.com/peterbrittain/asciimatics";
45 changelog = "https://github.com/peterbrittain/asciimatics/releases/tag/${version}";
46 license = licenses.asl20;
47 maintainers = with maintainers; [ cmcdragonkai ];
48 };
49}