Commit 81024f90 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python312Packages.textual-serve: init at 1.1.1

parent 8b23d3eb
Loading
Loading
Loading
Loading
+54 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchPypi,

  # build-system
  hatchling,

  # dependencies
  aiohttp,
  aiohttp-jinja2,
  jinja2,
  rich,
  textual,
}:

buildPythonPackage rec {
  pname = "textual-serve";
  version = "1.1.1";
  pyproject = true;

  # No tags on GitHub
  src = fetchPypi {
    pname = "textual_serve";
    inherit version;
    hash = "sha256-ccZiRyxGLl42je/GYO5ujq47/aiMpAwFDFVHRobrDFQ=";
  };

  build-system = [
    hatchling
  ];

  dependencies = [
    aiohttp
    aiohttp-jinja2
    jinja2
    rich
    textual
  ];

  pythonImportsCheck = [
    "textual_serve"
  ];

  # No tests in the pypi archive
  doCheck = false;

  meta = {
    description = "Turn your Textual TUIs in to web applications";
    homepage = "https://pypi.org/project/textual-serve/";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -16247,6 +16247,8 @@ self: super: with self; {
  textual-fastdatatable = callPackage ../development/python-modules/textual-fastdatatable { };
  textual-serve = callPackage ../development/python-modules/textual-serve { };
  textual-slider = callPackage ../development/python-modules/textual-slider { };
  textual-universal-directorytree = callPackage ../development/python-modules/textual-universal-directorytree { };