python313Packages.getch: init at 1.0

Does single char input, like C getch/getche

https://pypi.org/project/getch/
This commit is contained in:
Fabian Affolter
2026-01-13 20:45:11 +01:00
parent 7c1c262faf
commit 1bc16bde94
2 changed files with 33 additions and 0 deletions
@@ -0,0 +1,31 @@
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "getch";
version = "1.0";
pyproject = true;
src = fetchPypi {
inherit (finalAttrs) pname version;
hash = "sha256-psInF8EAUc5luPt73bFxr3BbEXXmlKc76VaZD2CJ2LE=";
};
build-system = [ setuptools ];
pythonImportsCheck = [ "getch" ];
# Module has no tests
doCheck = false;
meta = {
description = "Does single char input, like C getch/getche";
homepage = "https://pypi.org/project/getch/";
license = lib.licenses.publicDomain;
maintainers = with lib.maintainers; [ fab ];
};
})
+2
View File
@@ -6079,6 +6079,8 @@ self: super: with self; {
get-video-properties = callPackage ../development/python-modules/get-video-properties { };
getch = callPackage ../development/python-modules/getch { };
getjump = callPackage ../development/python-modules/getjump { };
getkey = callPackage ../development/python-modules/getkey { };