1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 poetry-core,
6 pytest-asyncio,
7 pytest-cov-stub,
8 pytestCheckHook,
9 pythonOlder,
10}:
11
12buildPythonPackage rec {
13 pname = "aionut";
14 version = "4.3.4";
15 pyproject = true;
16
17 disabled = pythonOlder "3.11";
18
19 src = fetchFromGitHub {
20 owner = "bdraco";
21 repo = "aionut";
22 tag = "v${version}";
23 hash = "sha256-mpWAxv6RUTecGp6Zdka+gC+12JWcPQaKgJlqGgEINu0=";
24 };
25
26 build-system = [ poetry-core ];
27
28 nativeCheckInputs = [
29 pytest-asyncio
30 pytest-cov-stub
31 pytestCheckHook
32 ];
33
34 pythonImportsCheck = [ "aionut" ];
35
36 meta = with lib; {
37 description = "Asyncio Network UPS Tools";
38 homepage = "https://github.com/bdraco/aionut";
39 changelog = "https://github.com/bdraco/aionut/blob/${version}/CHANGELOG.md";
40 license = licenses.asl20;
41 maintainers = with maintainers; [ fab ];
42 };
43}