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.13.0"; 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "a041826ec5add03fb882d8981c1debf9b9e98274f4f2d52ec21ef30de70c2c6e"; 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 pythonImportsCheck = [ 43 "asciimatics.effects" 44 "asciimatics.renderers" 45 "asciimatics.scene" 46 "asciimatics.screen" 47 ]; 48 49 meta = with lib; { 50 description = "Helps to create full-screen text UIs (from interactive forms to ASCII animations) on any platform"; 51 homepage = "https://github.com/peterbrittain/asciimatics"; 52 license = licenses.asl20; 53 maintainers = with maintainers; [ cmcdragonkai ]; 54 }; 55}