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-12-28 21:21:41 +00:00
|
|
|
version = "0.6.0";
|
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;
|
2022-08-12 12:06:08 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
hash = "sha256-/ePvq+jFLiIsP1w9YxMl3lbekNRaDhKMjKXoYkCOpn8=";
|
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";
|
2022-12-28 21:21:41 +00:00
|
|
|
changelog = "https://github.com/dieselrabbit/screenlogicpy/releases/tag/v${version}";
|
2021-04-08 16:26:57 +00:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|