depot/third_party/nixpkgs/pkgs/development/python-modules/inquirerpy/default.nix
Default email 94427deb9d Project import generated by Copybara.
GitOrigin-RevId: f91ee3065de91a3531329a674a45ddcb3467a650
2023-05-24 16:37:59 +03:00

62 lines
1.2 KiB
Nix

{ 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.4";
format = "pyproject";
src = fetchFromGitHub {
owner = "kazhala";
repo = "InquirerPy";
rev = "refs/tags/${version}";
hash = "sha256-Ap0xZHEU458tjm6oEN5EtDoSRlnpZ7jvDq1L7fTlQQc=";
};
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 ];
};
}