2021-07-08 13:49:12 +02:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfronius";
|
2021-12-06 13:16:06 +01:00
|
|
|
version = "0.7.1";
|
2021-09-21 00:14:50 +02:00
|
|
|
|
2021-07-08 13:49:12 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nielstron";
|
|
|
|
repo = pname;
|
2021-08-18 11:27:21 +02:00
|
|
|
rev = "release-${version}";
|
2021-12-06 13:16:06 +01:00
|
|
|
sha256 = "1xwx0c1dp2374bwigzwhvcj4577vrxyhn6i5zv73k9ydc7w1xgyz";
|
2021-07-08 13:49:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
aiohttp
|
|
|
|
];
|
|
|
|
|
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "pyfronius" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python module to communicate with Fronius Symo";
|
|
|
|
homepage = "https://github.com/nielstron/pyfronius";
|
|
|
|
license = with licenses; [ mit ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|