depot/third_party/nixpkgs/pkgs/development/python-modules/screenlogicpy/default.nix
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

45 lines
919 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "screenlogicpy";
version = "0.5.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dieselrabbit";
repo = pname;
rev = "v${version}";
sha256 = "sha256-ApT89JcXrRKr+YnyEPAG3enwrfgYn7LeUmBbbmh/DPI=";
};
checkInputs = [
pytestCheckHook
];
disabledTests = [
# Tests require network access
"test_gateway_discovery"
"test_async_discovery"
"test_gateway"
"test_async"
"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 ];
};
}