2021-07-08 11:49:12 +00:00
|
|
|
{ lib
|
|
|
|
, aiohttp
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pythonOlder
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pyfronius";
|
2021-09-20 22:14:50 +00:00
|
|
|
version = "0.7.0";
|
|
|
|
|
2021-07-08 11:49:12 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "nielstron";
|
|
|
|
repo = pname;
|
2021-08-18 09:27:21 +00:00
|
|
|
rev = "release-${version}";
|
2021-09-20 22:14:50 +00:00
|
|
|
sha256 = "1jp9vsllvzfnrkzmln2sp1ggr4pwaj47744n2ijz1wsf8v38nw2j";
|
2021-07-08 11:49:12 +00: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 ];
|
|
|
|
};
|
|
|
|
}
|