python3Packages.touying: init at 0.13.2 (#423666)

This commit is contained in:
Gaétan Lepage 2025-07-09 08:01:41 +02:00 committed by GitHub
commit 247c3817d7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 58 additions and 0 deletions

View File

@ -0,0 +1 @@
{ python3Packages }: with python3Packages; toPythonApplication touying

View File

@ -0,0 +1,55 @@
{
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";
};
}

View File

@ -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 { };