depot/third_party/nixpkgs/pkgs/development/python-modules/noneprompt/default.nix
Default email bcb2f287e1 Project import generated by Copybara.
GitOrigin-RevId: d603719ec6e294f034936c0d0dc06f689d91b6c3
2024-06-20 20:27:18 +05:30

39 lines
819 B
Nix

{
buildPythonPackage,
fetchPypi,
lib,
poetry-core,
prompt-toolkit,
pythonOlder,
}:
buildPythonPackage rec {
pname = "noneprompt";
version = "0.1.9";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchPypi {
inherit pname version;
hash = "sha256-M4uLuJqNIu818d7bOqfBsijPE5lzvcQ8X/w+72RFfbk=";
};
build-system = [ poetry-core ];
dependencies = [ prompt-toolkit ];
# no test
doCheck = false;
pythonImportsCheck = [ "noneprompt" ];
meta = {
description = "Prompt toolkit for console interaction";
homepage = "https://github.com/nonebot/noneprompt";
changelog = "https://github.com/nonebot/noneprompt/releases/tag/v${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ moraxyc ];
mainProgram = "noneprompt";
};
}