diff --git a/pkgs/applications/misc/pysentation/default.nix b/pkgs/applications/misc/pysentation/default.nix new file mode 100644 index 000000000000..c02fec3c0166 --- /dev/null +++ b/pkgs/applications/misc/pysentation/default.nix @@ -0,0 +1,39 @@ +{ lib +, python3 +, fetchFromGitHub +}: + +python3.pkgs.buildPythonApplication rec { + pname = "pysentation"; + version = "1.0.0"; + format = "pyproject"; + + src = fetchFromGitHub { + owner = "mimseyedi"; + repo = "pysentation"; + rev = "v${version}"; + hash = "sha256-TwHDXWgGWuQVgatBDc1iympnb6dy4xYThLR5MouEZHA="; + }; + + nativeBuildInputs = [ + python3.pkgs.setuptools + python3.pkgs.wheel + ]; + + propagatedBuildInputs = with python3.pkgs; [ + click + getkey + rich + ]; + + pythonImportsCheck = [ "pysentation" ]; + + meta = with lib; { + description = "A CLI for displaying Python presentations"; + homepage = "https://github.com/mimseyedi/pysentation"; + changelog = "https://github.com/mimseyedi/pysentation/releases/tag/${src.rev}"; + license = licenses.gpl3Only; + maintainers = with maintainers; [ figsoda ]; + mainProgram = "pysentation"; + }; +} diff --git a/pkgs/top-level/all-packages.nix b/pkgs/top-level/all-packages.nix index 7ce74adabf8c..f896d4891f4e 100644 --- a/pkgs/top-level/all-packages.nix +++ b/pkgs/top-level/all-packages.nix @@ -12327,6 +12327,8 @@ with pkgs; pydeps = with python3Packages; toPythonApplication pydeps; + pysentation = callPackage ../applications/misc/pysentation { }; + python-launcher = callPackage ../development/tools/misc/python-launcher { }; pytrainer = callPackage ../applications/misc/pytrainer { };