blob: 2370bd7e627800cc2f66aa422b3ec2fb2af75a97 (
plain) (
blame)
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
46
47
48
49
50
51
52
53
54
55
56
57
|
{
lib,
aiohttp,
buildPythonPackage,
fetchFromGitHub,
poetry-core,
poetry-dynamic-versioning,
pythonRelaxDepsHook,
iso4217,
pythonOlder,
pytz,
}:
buildPythonPackage rec {
pname = "pyefergy";
version = "22.5.0";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "tkdrob";
repo = "pyefergy";
rev = "refs/tags/v${version}";
hash = "sha256-4M3r/+C42X95/7BGZAJbkXKKFEkGzLlvX0Ynv+eL8qc=";
};
build-system = [
poetry-core
poetry-dynamic-versioning
pythonRelaxDepsHook
];
pythonRemoveDeps = [
"codecov"
"types-pytz"
];
dependencies = [
aiohttp
iso4217
pytz
];
# Tests require network access
doCheck = false;
pythonImportsCheck = [ "pyefergy" ];
meta = with lib; {
changelog = "https://github.com/tkdrob/pyefergy/releases/tag/v${version}";
description = "Python API library for Efergy energy meters";
homepage = "https://github.com/tkdrob/pyefergy";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}
|