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