depot/third_party/nixpkgs/pkgs/development/python-modules/screenlogicpy/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

48 lines
1 KiB
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, pytest-asyncio
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "screenlogicpy";
version = "0.6.0";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "dieselrabbit";
repo = pname;
rev = "refs/tags/v${version}";
hash = "sha256-/ePvq+jFLiIsP1w9YxMl3lbekNRaDhKMjKXoYkCOpn8=";
};
checkInputs = [
pytest-asyncio
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";
changelog = "https://github.com/dieselrabbit/screenlogicpy/releases/tag/v${version}";
license = with licenses; [ gpl3Only ];
maintainers = with maintainers; [ fab ];
};
}