2021-04-07 23:57:19 +01:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-29 08:19:38 +01:00
|
|
|
, fetchFromGitHub
|
2021-04-07 23:57:19 +01:00
|
|
|
, pythonOlder
|
2021-04-29 08:19:38 +01:00
|
|
|
, pytestCheckHook
|
2021-04-07 23:57:19 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "screenlogicpy";
|
2021-06-19 02:39:14 +01:00
|
|
|
version = "0.4.2";
|
2021-04-07 23:57:19 +01:00
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
|
2021-04-29 08:19:38 +01:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "dieselrabbit";
|
|
|
|
repo = pname;
|
|
|
|
rev = "v${version}";
|
2021-06-19 02:39:14 +01:00
|
|
|
sha256 = "158y34d140bh93l143plq53l7n7mcnmqi5mj7hj0j1ljccxpjcnj";
|
2021-04-07 23:57:19 +01:00
|
|
|
};
|
|
|
|
|
2021-04-29 08:19:38 +01:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests require network access
|
|
|
|
"test_gateway_discovery"
|
|
|
|
"test_asyncio_gateway_discovery"
|
|
|
|
];
|
|
|
|
|
2021-04-07 23:57:19 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|