2021-04-07 22:57:19 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-29 07:19:38 +00:00
|
|
|
, fetchFromGitHub
|
2021-04-07 22:57:19 +00:00
|
|
|
, pythonOlder
|
2021-04-29 07:19:38 +00:00
|
|
|
, pytestCheckHook
|
2021-04-07 22:57:19 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "screenlogicpy";
|
2021-04-29 07:12:46 +00:00
|
|
|
version = "0.4.1";
|
2021-04-07 22:57:19 +00:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-04-29 07:19:38 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dieselrabbit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1rmjxqqbkfcv2xz8ilml799bzffls678fvq784fab2xdv595fndd";
|
2021-04-07 22:57:19 +00:00
|
|
|
};
|
|
|
|
|
2021-04-29 07:19:38 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_gateway_discovery"
|
|
|
|
"test_asyncio_gateway_discovery"
|
|
|
|
];
|
|
|
|
|
2021-04-07 22:57:19 +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 ];
|
|
|
|
};
|
|
|
|
}
|