From 6e439af37504904a275deef651d5a7ee7cea09f5 Mon Sep 17 00:00:00 2001 From: shivaraj-bh Date: Tue, 22 Oct 2024 16:35:27 +0530 Subject: [PATCH] python3Packages.presenterm-export: init at 0.2.5 --- .../presenterm-export/default.nix | 48 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 50 insertions(+) create mode 100644 pkgs/development/python-modules/presenterm-export/default.nix diff --git a/pkgs/development/python-modules/presenterm-export/default.nix b/pkgs/development/python-modules/presenterm-export/default.nix new file mode 100644 index 0000000000000..1120b663acb2d --- /dev/null +++ b/pkgs/development/python-modules/presenterm-export/default.nix @@ -0,0 +1,48 @@ +{ + lib, + buildPythonPackage, + fetchPypi, + pythonOlder, + setuptools, + ansi2html, + libtmux, + weasyprint, + dataclass-wizard, +}: + +buildPythonPackage rec { + pname = "presenterm-export"; + version = "0.2.5"; + pyproject = true; + + src = fetchPypi { + pname = "presenterm_export"; + inherit version; + hash = "sha256-jof/0phASV/0bE0wNaio9PVCfIgm30EWzlLWxPMw8Rs="; + }; + + pythonRelaxDeps = true; + + disabled = pythonOlder "3.9"; + + build-system = [ + setuptools + ]; + + dependencies = [ + ansi2html + libtmux + weasyprint + dataclass-wizard + ]; + + pythonImportsCheck = [ "presenterm_export" ]; + + meta = with lib; { + description = "PDF exporter for presenterm"; + homepage = "https://github.com/mfontanini/presenterm-export"; + changelog = "https://github.com/mfontanini/presenterm-export/releases/tag/v${version}"; + license = licenses.bsd2; + maintainers = with maintainers; [ shivaraj-bh ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 9d0c8f1966ac6..eee7115c62573 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10826,6 +10826,8 @@ self: super: with self; { preshed = callPackage ../development/python-modules/preshed { }; + presenterm-export = callPackage ../development/python-modules/presenterm-export { }; + pretend = callPackage ../development/python-modules/pretend { }; pretty-errors = callPackage ../development/python-modules/pretty-errors { };