1bca5da79c
Asynchronous Python client for the Fressnapf Tracker GPS API. https://github.com/eifinger/fressnapftracker
52 lines
1.0 KiB
Nix
52 lines
1.0 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
hatchling,
|
|
httpx,
|
|
pydantic,
|
|
pytest-asyncio,
|
|
pytest-cov-stub,
|
|
pytest-mock,
|
|
pytestCheckHook,
|
|
respx,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "fressnapftracker";
|
|
version = "0.2.2";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "eifinger";
|
|
repo = "fressnapftracker";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-gJsE/1HnUXEDa5Y7eLtHexx+G00MGQDZJu3pui9OeMM=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [
|
|
httpx
|
|
pydantic
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytest-cov-stub
|
|
pytest-mock
|
|
pytestCheckHook
|
|
respx
|
|
];
|
|
|
|
pythonImportsCheck = [ "fressnapftracker" ];
|
|
|
|
meta = {
|
|
description = "Asynchronous Python client for the Fressnapf Tracker GPS API";
|
|
homepage = "https://github.com/eifinger/fressnapftracker";
|
|
changelog = "https://github.com/eifinger/fressnapftracker/releases/tag/v${finalAttrs.version}";
|
|
license = lib.licenses.asl20;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
};
|
|
})
|