mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-07-19 07:01:12 +00:00
42 lines
986 B
Nix
42 lines
986 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromCodeberg,
|
|
hatchling,
|
|
aiohttp,
|
|
pytest-asyncio,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage (finalAttrs: {
|
|
pname = "data-grand-lyon-ha";
|
|
version = "0.8.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromCodeberg {
|
|
owner = "Crocmagnon";
|
|
repo = "data_grand_lyon_ha";
|
|
tag = "v${finalAttrs.version}";
|
|
hash = "sha256-Wpn3Ou8Cm+h5uyROw+6weDYyZHvLXLNpW3aIyKnUueE=";
|
|
};
|
|
|
|
build-system = [ hatchling ];
|
|
|
|
dependencies = [ aiohttp ];
|
|
|
|
nativeCheckInputs = [
|
|
pytest-asyncio
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [ "data_grand_lyon_ha" ];
|
|
|
|
meta = {
|
|
description = "Python library to retrieve data from Grand Lyon open data platform, for Home Assistant";
|
|
homepage = "https://codeberg.org/Crocmagnon/data_grand_lyon_ha";
|
|
changelog = "https://codeberg.org/Crocmagnon/data_grand_lyon_ha/releases/tag/${finalAttrs.src.tag}";
|
|
license = lib.licenses.mit;
|
|
maintainers = [ lib.maintainers.jamiemagee ];
|
|
};
|
|
})
|