1{ 2 lib, 3 buildPythonPackage, 4 fetchPypi, 5 6 # build-system 7 hatchling, 8 9 # dependencies 10 aiohttp, 11 aiohttp-jinja2, 12 jinja2, 13 rich, 14 textual, 15}: 16 17buildPythonPackage rec { 18 pname = "textual-serve"; 19 version = "1.1.2"; 20 pyproject = true; 21 22 # No tags on GitHub 23 src = fetchPypi { 24 pname = "textual_serve"; 25 inherit version; 26 hash = "sha256-DMr5ud+cCNSy16CIfK0yciQ7qH9oGSw2T0vtW2g+S9Q="; 27 }; 28 29 build-system = [ 30 hatchling 31 ]; 32 33 dependencies = [ 34 aiohttp 35 aiohttp-jinja2 36 jinja2 37 rich 38 textual 39 ]; 40 41 pythonImportsCheck = [ 42 "textual_serve" 43 ]; 44 45 # No tests in the pypi archive 46 doCheck = false; 47 48 meta = { 49 description = "Turn your Textual TUIs in to web applications"; 50 homepage = "https://pypi.org/project/textual-serve/"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ GaetanLepage ]; 53 }; 54}