1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, pytestCheckHook
5, pythonOlder
6, requests
7, requests-mock
8, setuptools
9, wheel
10}:
11
12buildPythonPackage rec {
13 pname = "pyfibaro";
14 version = "0.7.6";
15 format = "pyproject";
16
17 disabled = pythonOlder "3.9";
18
19 src = fetchFromGitHub {
20 owner = "rappenze";
21 repo = pname;
22 rev = "refs/tags/${version}";
23 hash = "sha256-yE9HkAlGj1t90FwmwHDsk3ea2UOl0bG3UtYXxz/SWbI=";
24 };
25
26 nativeBuildInputs = [
27 setuptools
28 wheel
29 ];
30
31 propagatedBuildInputs = [
32 requests
33 ];
34
35 nativeCheckInputs = [
36 pytestCheckHook
37 requests-mock
38 ];
39
40 pythonImportsCheck = [
41 "pyfibaro"
42 ];
43
44 meta = with lib; {
45 description = "Library to access FIBARO Home center";
46 homepage = "https://github.com/rappenze/pyfibaro";
47 changelog = "https://github.com/rappenze/pyfibaro/releases/tag/${version}";
48 license = with licenses; [ mit ];
49 maintainers = with maintainers; [ fab ];
50 };
51}