fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
44 lines
960 B
Nix
44 lines
960 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-aiohttp,
|
|
pytestCheckHook,
|
|
pythonOlder,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "arris-tg2492lg";
|
|
version = "2.2.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "vanbalken";
|
|
repo = "arris-tg2492lg";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-MQq9jMUoJgqaY0f9YIbhME2kO+ektPqBnT9REg3qDpg=";
|
|
};
|
|
|
|
nativeBuildInputs = [ setuptools ];
|
|
|
|
propagatedBuildInputs = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-aiohttp
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "arris_tg2492lg" ];
|
|
|
|
meta = with lib; {
|
|
description = "Library to connect to an Arris TG2492LG";
|
|
homepage = "https://github.com/vanbalken/arris-tg2492lg";
|
|
changelog = "https://github.com/vanbalken/arris-tg2492lg/releases/tag/${version}";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|