diff --git a/pkgs/development/python-modules/async-tkinter-loop/default.nix b/pkgs/development/python-modules/async-tkinter-loop/default.nix new file mode 100644 index 000000000000..bb00fbcde53b --- /dev/null +++ b/pkgs/development/python-modules/async-tkinter-loop/default.nix @@ -0,0 +1,46 @@ +{ lib +, buildPythonPackage +, fetchPypi +, python3Packages +, poetry-core +, tkinter +, pythonRelaxDepsHook +, pytestCheckHook +}: + +buildPythonPackage rec { + pname = "async-tkinter-loop"; + version = "0.8.1"; + format = "pyproject"; + + src = fetchPypi { + inherit version; + pname = "async_tkinter_loop"; + hash = "sha256-+9AvnYIZMWCbpCEKdbIadyU8zgyUlW/fRYYyDOxAzeg="; + }; + + nativeBuildInputs = [ + pythonRelaxDepsHook + poetry-core + ]; + + propagatedBuildInputs = [ + tkinter + ]; + + pythonRemoveDeps = [ + "asyncio" + ]; + + pythonImportsCheck = [ + "async_tkinter_loop" + ]; + + meta = with lib; { + description = "Implementation of asynchronous mainloop for tkinter, the use of which allows using async handler functions"; + homepage = "https://github.com/insolor/async-tkinter-loop"; + changelog = "https://github.com/insolor/async-tkinter-loop/releases/tag/${version}"; + license = licenses.mit; + maintainers = with maintainers; [ AngryAnt ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index e1fa34835e11..69def0df2c98 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -750,6 +750,8 @@ self: super: with self; { async-timeout = callPackage ../development/python-modules/async_timeout { }; + async-tkinter-loop = callPackage ../development/python-modules/async-tkinter-loop { }; + asyncua = callPackage ../development/python-modules/asyncua { }; async-upnp-client = callPackage ../development/python-modules/async-upnp-client { };