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-12-26 17:43:05 +00:00
|
|
|
, pytest-asyncio
|
2021-05-03 20:48:10 +00:00
|
|
|
, pytestCheckHook
|
2021-04-08 16:26:57 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "screenlogicpy";
|
2022-01-13 20:06:32 +00:00
|
|
|
version = "0.5.4";
|
2021-12-06 16:07:01 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
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}";
|
2022-01-13 20:06:32 +00:00
|
|
|
sha256 = "0r9227s4v17jm5n0j31ssnak9f5p7xfvz4r1fwy61286is3j5gbb";
|
2021-04-08 16:26:57 +00:00
|
|
|
};
|
|
|
|
|
2021-05-03 20:48:10 +00:00
|
|
|
checkInputs = [
|
2021-12-26 17:43:05 +00:00
|
|
|
pytest-asyncio
|
2021-05-03 20:48:10 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_gateway_discovery"
|
2021-12-06 16:07:01 +00:00
|
|
|
"test_async_discovery"
|
|
|
|
"test_gateway"
|
|
|
|
"test_async"
|
2021-05-03 20:48:10 +00:00
|
|
|
"test_asyncio_gateway_discovery"
|
|
|
|
];
|
|
|
|
|
2021-12-06 16:07:01 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"screenlogicpy"
|
|
|
|
];
|
2021-04-08 16:26:57 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for Pentair Screenlogic devices";
|
|
|
|
homepage = "https://github.com/dieselrabbit/screenlogicpy";
|
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|