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.1.0";
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-3i9I2RRRxLgyfzegnqjO4g+ad1v4phx6xa8HpWP1cck=";
23 };
24
25 nativeBuildInputs = [
26 poetry-core
27 ];
28
29 propagatedBuildInputs = [
30 aiohttp
31 urllib3
32 ];
33
34 nativeCheckInputs = [
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 changelog = "https://github.com/hacf-fr/freebox-api/releases/tag/v${version}";
46 license = with licenses; [ gpl3Only ];
47 maintainers = with maintainers; [ fab ];
48 };
49}