2021-04-08 00:57:19 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-29 09:19:38 +02:00
|
|
|
, fetchFromGitHub
|
2021-04-08 00:57:19 +02:00
|
|
|
, pythonOlder
|
2021-11-28 10:19:26 +01:00
|
|
|
, pytest-asyncio
|
2021-04-29 09:19:38 +02:00
|
|
|
, pytestCheckHook
|
2021-04-08 00:57:19 +02:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "screenlogicpy";
|
2022-12-25 12:35:30 +01:00
|
|
|
version = "0.6.0";
|
2021-10-25 16:09:27 +02:00
|
|
|
format = "setuptools";
|
|
|
|
|
2021-04-08 00:57:19 +02:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-04-29 09:19:38 +02:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dieselrabbit";
|
|
|
|
repo = pname;
|
2022-07-18 17:19:22 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
2022-12-25 12:35:30 +01:00
|
|
|
hash = "sha256-/ePvq+jFLiIsP1w9YxMl3lbekNRaDhKMjKXoYkCOpn8=";
|
2021-04-08 00:57:19 +02:00
|
|
|
};
|
|
|
|
|
2021-04-29 09:19:38 +02:00
|
|
|
checkInputs = [
|
2021-11-28 10:19:26 +01:00
|
|
|
pytest-asyncio
|
2021-04-29 09:19:38 +02:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_gateway_discovery"
|
2021-10-25 16:09:27 +02:00
|
|
|
"test_async_discovery"
|
|
|
|
"test_gateway"
|
|
|
|
"test_async"
|
2021-04-29 09:19:38 +02:00
|
|
|
"test_asyncio_gateway_discovery"
|
|
|
|
];
|
|
|
|
|
2021-10-25 16:09:27 +02:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"screenlogicpy"
|
|
|
|
];
|
2021-04-08 00:57:19 +02:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python interface for Pentair Screenlogic devices";
|
|
|
|
homepage = "https://github.com/dieselrabbit/screenlogicpy";
|
2022-12-25 12:34:20 +01:00
|
|
|
changelog = "https://github.com/dieselrabbit/screenlogicpy/releases/tag/v${version}";
|
2021-04-08 00:57:19 +02:00
|
|
|
license = with licenses; [ gpl3Only ];
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|