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