Commit ee8e1988 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

[python3Packages.]touying: init at 0.13.2

parent e4c83e62
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
{ python3Packages }: with python3Packages; toPythonApplication touying
+55 −0
Original line number Diff line number Diff line
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,

  # build-system
  setuptools,

  # dependencies
  jinja2,
  pillow,
  python-pptx,
  typst,
}:

buildPythonPackage rec {
  pname = "touying";
  version = "0.13.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "touying-typ";
    repo = "touying-exporter";
    tag = version;
    hash = "sha256-gcr3KS2Qm8CMA+8AeC0hbGi9Gjj5sMr6gJkuoZWUEGY=";
  };

  build-system = [
    setuptools
  ];

  pythonRemoveDeps = [
    "argparse"
  ];
  dependencies = [
    jinja2
    pillow
    python-pptx
    typst
  ];

  pythonImportsCheck = [ "touying" ];

  # no tests
  doCheck = false;

  meta = {
    description = "Export presentation slides in various formats for Touying";
    changelog = "https://github.com/touying-typ/touying-exporter/releases/tag/${version}";
    homepage = "https://github.com/touying-typ/touying-exporter";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ GaetanLepage ];
    mainProgram = "touying";
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -18054,6 +18054,8 @@ self: super: with self; {
  total-connect-client = callPackage ../development/python-modules/total-connect-client { };
  touying = callPackage ../development/python-modules/touying { };
  towncrier = callPackage ../development/python-modules/towncrier { inherit (pkgs) git; };
  tox = callPackage ../development/python-modules/tox { };