1{ lib
2, aiohttp
3, buildPythonPackage
4, fetchFromGitHub
5, pythonOlder
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "pyfronius";
11 version = "0.7.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "nielstron";
18 repo = pname;
19 rev = "release-${version}";
20 hash = "sha256-eWe4nXKW9oP9lqehy6BK7ABaIqP3dgRX6ymW1Okfd9g=";
21 };
22
23 propagatedBuildInputs = [
24 aiohttp
25 ];
26
27 nativeCheckInputs = [
28 pytestCheckHook
29 ];
30
31 pythonImportsCheck = [
32 "pyfronius"
33 ];
34
35 meta = with lib; {
36 description = "Python module to communicate with Fronius Symo";
37 homepage = "https://github.com/nielstron/pyfronius";
38 changelog = "https://github.com/nielstron/pyfronius/releases/tag/release-${version}";
39 license = with licenses; [ mit ];
40 maintainers = with maintainers; [ fab ];
41 };
42}