blob: a71b5d43405e39585336af880b2e973627ff5de0 (
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
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
}:
buildPythonPackage rec {
pname = "electrickiwi-api";
version = "0.9.14";
pyproject = true;
src = fetchFromGitHub {
owner = "mikey0000";
repo = "EK-API";
tag = "v${version}";
hash = "sha256-UXweOz5olwx3ZI2M7eI1n729tqfLiWszV2zTWbrA9CM=";
};
build-system = [ poetry-core ];
dependencies = [ aiohttp ];
pythonImportsCheck = [ "electrickiwi_api" ];
# Tests require authentication credentials
doCheck = false;
meta = {
description = "Python library for interfacing with the Electric Kiwi power company API";
homepage = "https://github.com/mikey0000/EK-API";
license = lib.licenses.gpl3Only;
maintainers = [ lib.maintainers.jamiemagee ];
};
}
|