blob: 7c44c945535c3680849dac732bee480a0ba6a4c7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
{
lib,
aiohttp,
aresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-cov-stub,
pytestCheckHook,
setuptools,
}:
buildPythonPackage rec {
pname = "nrgkick-api";
version = "1.5.0";
pyproject = true;
src = fetchFromGitHub {
owner = "andijakl";
repo = "nrgkick-api";
tag = "v${version}";
hash = "sha256-WtSL9fUJF2xsX53epFcY++KwjnAs3YiKHDb2a5x4tfE=";
};
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 ];
};
}
|