Files
nixpkgs/pkgs/development/python-modules/nrgkick-api/default.nix
T
2026-01-03 00:53:57 +00:00

46 lines
944 B
Nix

{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "nrgkick-api";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "andijakl";
repo = "nrgkick-api";
tag = "v${version}";
hash = "sha256-Azk3v4cNBdbwIssb1Eu8z4kEuzQqFTYy4PBbpu9MdhE=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aresponses
pytest-asyncio
pytest-cov-stub
pytestCheckHook
];
pythonImportsCheck = [ "nrgkick_api" ];
meta = {
description = "Python client for NRGkick Gen2 EV charger local REST API";
homepage = "https://github.com/andijakl/nrgkick-api";
changelog = "https://github.com/andijakl/nrgkick-api/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ fab ];
};
}