From b16e822a4046cabbba4970d96776f95275406dce Mon Sep 17 00:00:00 2001 From: Doron Behar Date: Thu, 19 Dec 2024 11:03:41 +0200 Subject: [PATCH] python312Packages.questo: init at 0.4.1 --- .../python-modules/questo/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/questo/default.nix diff --git a/pkgs/development/python-modules/questo/default.nix b/pkgs/development/python-modules/questo/default.nix new file mode 100644 index 000000000000..c1f8ad3b4b8f --- /dev/null +++ b/pkgs/development/python-modules/questo/default.nix @@ -0,0 +1,52 @@ +{ + lib, + buildPythonPackage, + fetchFromGitHub, + + # build-system + poetry-core, + + # dependencies + python-yakh, + rich, + + # nativeCheckInputs + pytestCheckHook, +}: + +buildPythonPackage rec { + pname = "questo"; + version = "0.4.1"; + pyproject = true; + + src = fetchFromGitHub { + owner = "petereon"; + repo = "questo"; + rev = "v${version}"; + hash = "sha256-XCxSH2TSU4YdfyqfLpVSEeDeU1S24C+NezP1IL5qj/4="; + }; + + build-system = [ + poetry-core + ]; + + dependencies = [ + python-yakh + rich + ]; + + pythonImportsCheck = [ + "questo" + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + meta = { + description = "A library of extensible and modular CLI prompt elements"; + homepage = "https://github.com/petereon/questo"; + license = lib.licenses.mit; + maintainers = with lib.maintainers; [ doronbehar ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e22d86593482..f48e7ed099e8 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -13749,6 +13749,8 @@ self: super: with self; { querystring-parser = callPackage ../development/python-modules/querystring-parser { }; + questo = callPackage ../development/python-modules/questo { }; + questionary = callPackage ../development/python-modules/questionary { }; queuelib = callPackage ../development/python-modules/queuelib { };