Files
nixpkgs/pkgs/development/python-modules/aioabrp/default.nix
2026-11-15 14:16:04 -08:00

55 lines
1.1 KiB
Nix

{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
hatch-vcs,
hatchling,
packaging,
pytest-asyncio,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage (finalAttrs: {
pname = "aioabrp";
version = "0.9.0";
pyproject = true;
disabled = pythonOlder "3.14";
src = fetchFromGitHub {
owner = "mtandersson";
repo = "aioabrp";
tag = "v${finalAttrs.version}";
hash = "sha256-VeuatqfbYHX6TPdYNI5mA7Mi/2kyUyE8+jPXsaFbRQQ=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
packaging
pytest-asyncio
pytestCheckHook
];
__darwinAllowLocalNetworking = true;
pythonImportsCheck = [ "aioabrp" ];
meta = {
description = "Async Python client for the A Better Routeplanner (ABRP) / Iternio telemetry API";
homepage = "https://github.com/mtandersson/aioabrp";
changelog = "https://github.com/mtandersson/aioabrp/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.mit;
maintainers = [ lib.maintainers.jamiemagee ];
};
})