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