blob: 466c8f726089576434e068f6cd19ac5daae834d6 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
aiohttp,
aioresponses,
pytest-asyncio,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "aio-wattwaechter";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "SmartCircuits-GmbH";
repo = "WattWaechter-PyPI";
tag = "v${finalAttrs.version}";
hash = "sha256-hM2DGQBEUr1HYd0CDdjRdFA7+HKaF2kLVFrAWCjP+CU=";
};
build-system = [ setuptools ];
dependencies = [ aiohttp ];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytestCheckHook
];
pythonImportsCheck = [ "aio_wattwaechter" ];
meta = {
description = "Async Python client for the WattWächter smart meter API";
homepage = "https://github.com/SmartCircuits-GmbH/WattWaechter-PyPI";
changelog = "https://github.com/SmartCircuits-GmbH/WattWaechter-PyPI/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = [ lib.maintainers.jamiemagee ];
};
})
|