51 lines
950 B
Nix
51 lines
950 B
Nix
{
|
|
lib,
|
|
aiohttp,
|
|
async-timeout,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
pytest-cov-stub,
|
|
pytestCheckHook,
|
|
setuptools,
|
|
slixmpp,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "aioharmony";
|
|
version = "0.5.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Harmony-Libs";
|
|
repo = "aioharmony";
|
|
tag = "v${version}";
|
|
hash = "sha256-QFl+OqduNGxs/+QNXpNZqtys0OTCWGmKTNa1Xht4Fuw=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [
|
|
aiohttp
|
|
async-timeout
|
|
slixmpp
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-cov-stub
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"aioharmony.harmonyapi"
|
|
"aioharmony.harmonyclient"
|
|
];
|
|
|
|
meta = with lib; {
|
|
homepage = "https://github.com/Harmony-Libs/aioharmony";
|
|
description = "Python library for interacting the Logitech Harmony devices";
|
|
mainProgram = "aioharmony";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ oro ];
|
|
};
|
|
}
|