@@ -0,0 +1,36 @@
1+{ lib
2+, aiohttp
3+, buildPythonPackage
4+, fetchFromGitHub
5+, poetry
6+, pythonOlder
7+, pytestCheckHook
8+}:
9+
10+buildPythonPackage rec {
11+ pname = "freebox-api";
12+ version = "0.0.9";
13+ format = "pyproject";
14+ disabled = pythonOlder "3.6";
15+
16+ src = fetchFromGitHub {
17+ owner = "hacf-fr";
18+ repo = pname;
19+ rev = "v${version}";
20+ sha256 = "0qn7jqfbp850aqgfsxjfv14myi6idz6sf7024p6wpqpa2xk0vfiq";
21+ };
22+
23+ nativeBuildInputs = [ poetry ];
24+
25+ propagatedBuildInputs = [ aiohttp ];
26+
27+ checkInputs = [ pytestCheckHook ];
28+ pythonImportsCheck = [ "freebox_api" ];
29+
30+ meta = with lib; {
31+ description = "Python module to interact with the Freebox OS API";
32+ homepage = "https://github.com/hacf-fr/freebox-api";
33+ license = with licenses; [ gpl3Only ];
34+ maintainers = with maintainers; [ fab ];
35+ };
36+}