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