depot/third_party/nixpkgs/pkgs/development/python-modules/screenlogicpy/default.nix
Default email 9543354213 Project import generated by Copybara.
GitOrigin-RevId: c21ba4f7bb4a3d621eb1d187e6b5e816bb85380c
2021-09-28 10:13:01 +02:00

38 lines
825 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "screenlogicpy";
version = "0.4.3";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dieselrabbit";
repo = pname;
rev = "v${version}";
sha256 = "0v0nbwz0w2m7kzvcl0fh2v2rk5ldsq22siyxq6d401pkpzwih25c";
};
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 ];
};
}