2021-04-08 16:26:57 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-05-03 20:48:10 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-08 16:26:57 +00:00
|
|
|
, pythonOlder
|
2021-05-03 20:48:10 +00:00
|
|
|
, pytestCheckHook
|
2021-04-08 16:26:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "screenlogicpy";
|
2021-09-28 08:13:01 +00:00
|
|
|
version = "0.4.3";
|
2021-04-08 16:26:57 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dieselrabbit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-09-28 08:13:01 +00:00
|
|
|
sha256 = "0v0nbwz0w2m7kzvcl0fh2v2rk5ldsq22siyxq6d401pkpzwih25c";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_gateway_discovery"
|
|
|
|
"test_asyncio_gateway_discovery"
|
|
|
|
];
|
|
|
|
|
2021-04-08 16:26:57 +00:00
|
|
|
pythonImportsCheck = [ "screenlogicpy" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for Pentair Screenlogic devices";
|
|
|
|
homepage = "https://github.com/dieselrabbit/screenlogicpy";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|