mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-11-29 09:20:13 +00:00
55 lines
1.1 KiB
Nix
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 ];
|
|
};
|
|
})
|