1{
2 lib,
3 aiohttp,
4 buildPythonPackage,
5 fetchFromGitHub,
6 poetry-core,
7 pytestCheckHook,
8 pythonOlder,
9 urllib3,
10}:
11
12buildPythonPackage rec {
13 pname = "freebox-api";
14 version = "1.2.2";
15 pyproject = true;
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "hacf-fr";
21 repo = "freebox-api";
22 tag = "v${version}";
23 hash = "sha256-piPC3F63Yqk1rYPYyIoEHSpC8TS4HyIVa8XbQlAgcqA=";
24 };
25
26 build-system = [ poetry-core ];
27
28 pythonRelaxDeps = [ "urllib3" ];
29
30 dependencies = [
31 aiohttp
32 urllib3
33 ];
34
35 nativeCheckInputs = [ pytestCheckHook ];
36
37 pythonImportsCheck = [ "freebox_api" ];
38
39 meta = with lib; {
40 description = "Python module to interact with the Freebox OS API";
41 homepage = "https://github.com/hacf-fr/freebox-api";
42 changelog = "https://github.com/hacf-fr/freebox-api/releases/tag/v${version}";
43 license = licenses.gpl3Only;
44 maintainers = with maintainers; [ fab ];
45 mainProgram = "freebox_api";
46 };
47}