Files
2026-07-15 14:04:39 -04:00

48 lines
1020 B
Nix

{
lib,
aiohttp,
buildPythonPackage,
faker,
fetchFromGitHub,
pytest-aiohttp,
pytest-mock,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "aiolookin";
version = "1.0.0";
pyproject = true;
src = fetchFromGitHub {
owner = "ANMalko";
repo = "aiolookin";
tag = "v${finalAttrs.version}";
hash = "sha256-G3/lUgV60CMLskUo83TlvLLIfJtu5DEz+94mdVI4OrI=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
doCheck = false; # all tests are async and no async plugin is configured
nativeCheckInputs = [
faker
pytest-aiohttp
pytest-mock
pytestCheckHook
];
pythonImportsCheck = [ "aiolookin" ];
meta = {
description = "Python client for interacting with LOOKin devices";
homepage = "https://github.com/ANMalko/aiolookin";
changelog = "https://github.com/ANMalko/aiolookin/blob/v${finalAttrs.version}/CHANGELOG.md";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
})