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.1.0";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.8";
18
19 src = fetchFromGitHub {
20 owner = "hacf-fr";
21 repo = pname;
22 rev = "refs/tags/v${version}";
23 hash = "sha256-3i9I2RRRxLgyfzegnqjO4g+ad1v4phx6xa8HpWP1cck=";
24 };
25
26 nativeBuildInputs = [
27 poetry-core
28 ];
29
30 pythonRelaxDeps = [ "urllib3" ];
31
32 propagatedBuildInputs = [
33 aiohttp
34 urllib3
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "freebox_api" ];
40
41 meta = with lib; {
42 description = "Python module to interact with the Freebox OS API";
43 mainProgram = "freebox_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}