1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 python3Packages,
6 poetry-core,
7 tkinter,
8 typing-extensions,
9 pythonRelaxDepsHook,
10 pytestCheckHook,
11}:
12
13buildPythonPackage rec {
14 pname = "async-tkinter-loop";
15 version = "0.9.3";
16 format = "pyproject";
17
18 src = fetchPypi {
19 inherit version;
20 pname = "async_tkinter_loop";
21 hash = "sha256-UJxBgTmEe8suR6WmttJKLi3KKQvEaNrWtrgCnoqGW/0=";
22 };
23
24 nativeBuildInputs = [
25 pythonRelaxDepsHook
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 tkinter
31 typing-extensions
32 ];
33
34 pythonRemoveDeps = [ "asyncio" ];
35
36 pythonImportsCheck = [ "async_tkinter_loop" ];
37
38 meta = with lib; {
39 description = "Implementation of asynchronous mainloop for tkinter, the use of which allows using async handler functions";
40 homepage = "https://github.com/insolor/async-tkinter-loop";
41 changelog = "https://github.com/insolor/async-tkinter-loop/releases/tag/${version}";
42 license = licenses.mit;
43 maintainers = with maintainers; [ AngryAnt ];
44 };
45}