diff --git a/pkgs/development/python-modules/inquirerpy/default.nix b/pkgs/development/python-modules/inquirerpy/default.nix new file mode 100644 index 000000000000..0ee321232d93 --- /dev/null +++ b/pkgs/development/python-modules/inquirerpy/default.nix @@ -0,0 +1,62 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, furo +, myst-parser +, pfzy +, poetry-core +, prompt-toolkit +, pytestCheckHook +, pythonOlder +, sphinx +, sphinx-autobuild +, sphinx-copybutton +}: + +buildPythonPackage rec { + pname = "inquirerpy"; + version = "0.3.3"; + format = "pyproject"; + + + src = fetchFromGitHub { + owner = "kazhala"; + repo = "InquirerPy"; + rev = "refs/tags/${version}"; + hash = "sha256-Ktqzxuj4aBHrgjiOyoDLuqbN0FJqwUpoyq3LuqXxt2Y="; + }; + + nativeBuildInputs = [ + poetry-core + ]; + + propagatedBuildInputs = [ + pfzy + prompt-toolkit + ]; + + nativeCheckInputs = [ + pytestCheckHook + ]; + + pythonImportsCheck = [ + "InquirerPy" + ]; + + disabledTestPaths = [ + # AttributeError: '_GeneratorContextManager' object has no attribute 'close' + "tests/prompts/" + "tests/base/test_simple.py" + "tests/base/test_complex.py" + "tests/base/test_list.py" + ]; + + + meta = with lib; { + description = "Python port of Inquirer.js"; + homepage = "https://github.com/kazhala/InquirerPy"; + changelog = "https://github.com/kazhala/InquirerPy/blob/${src.rev}/CHANGELOG.md"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 797a5824117b..8d1ab5ccee93 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4871,6 +4871,8 @@ self: super: with self; { inquirer = callPackage ../development/python-modules/inquirer { }; + inquirerpy = callPackage ../development/python-modules/inquirerpy { }; + inscriptis = callPackage ../development/python-modules/inscriptis { }; insegel = callPackage ../development/python-modules/insegel { };