1{ lib
2, buildPythonPackage
3, fetchPypi
4, setuptools_scm
5, pyfiglet
6, pillow
7, wcwidth
8, future
9, mock
10, nose
11}:
12
13buildPythonPackage rec {
14 pname = "asciimatics";
15 version = "1.11.0";
16
17 src = fetchPypi {
18 inherit pname version;
19 sha256 = "132y3gc0dj9vmgajmzz2fyc3icrrgsvynwfl0g31bylm7h9p220x";
20 };
21
22 nativeBuildInputs = [
23 setuptools_scm
24 ];
25
26 propagatedBuildInputs = [
27 pyfiglet
28 pillow
29 wcwidth
30 future
31 ];
32
33 checkInputs = [
34 mock
35 nose
36 ];
37
38 # tests require a pty emulator
39 # which is too complicated to setup here
40 doCheck = false;
41
42 meta = with lib; {
43 description = "Helps to create full-screen text UIs (from interactive forms to ASCII animations) on any platform";
44 homepage = https://github.com/peterbrittain/asciimatics;
45 license = licenses.asl20;
46 maintainers = with maintainers; [ cmcdragonkai ];
47 };
48}