1{
2 lib,
3 aiohttp,
4 aresponses,
5 awesomeversion,
6 backoff,
7 buildPythonPackage,
8 cachetools,
9 fetchFromGitHub,
10 poetry-core,
11 pytest-asyncio,
12 pytest-cov-stub,
13 pytestCheckHook,
14 pythonOlder,
15 yarl,
16}:
17
18buildPythonPackage rec {
19 pname = "python-technove";
20 version = "2.0.0";
21 pyproject = true;
22
23 disabled = pythonOlder "3.11";
24
25 src = fetchFromGitHub {
26 owner = "Moustachauve";
27 repo = "pytechnove";
28 tag = "v${version}";
29 hash = "sha256-LgrydBgx68HP8yaywkMMeS71VqhilYGODppBZbdkssQ=";
30 };
31
32 build-system = [ poetry-core ];
33
34 dependencies = [
35 aiohttp
36 awesomeversion
37 backoff
38 cachetools
39 yarl
40 ];
41
42 nativeCheckInputs = [
43 aresponses
44 pytest-asyncio
45 pytest-cov-stub
46 pytestCheckHook
47 ];
48
49 pythonImportsCheck = [ "technove" ];
50
51 meta = with lib; {
52 description = "Python library to interact with TechnoVE local device API";
53 homepage = "https://github.com/Moustachauve/pytechnove";
54 changelog = "https://github.com/Moustachauve/pytechnove/releases/tag/${src.tag}";
55 license = licenses.mit;
56 maintainers = with maintainers; [ fab ];
57 };
58}