dae973cb59
GitOrigin-RevId: c90c4025bb6e0c4eaf438128a3b2640314b1c58d
53 lines
1.1 KiB
Nix
53 lines
1.1 KiB
Nix
{ lib
|
|
, async-timeout
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, pythonOlder
|
|
, pytest-asyncio
|
|
, pytestCheckHook
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "screenlogicpy";
|
|
version = "0.8.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.6";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dieselrabbit";
|
|
repo = pname;
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-VZ2WZpty7PXxU0uqJ/dftUNBW3QEIXrLghKxsW9lsgE=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
async-timeout
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
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 ];
|
|
};
|
|
}
|