blob: 117ac904cf185c3fb4a6520b042a046d9d6a4cbc (
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
aiohttp,
aiozoneinfo,
arrow,
buildPythonPackage,
cryptography,
fetchFromGitHub,
pyotp,
pytest-asyncio,
python-dotenv,
pytestCheckHook,
setuptools,
}:
buildPythonPackage (finalAttrs: {
pname = "opower";
version = "0.16.4";
pyproject = true;
src = fetchFromGitHub {
owner = "tronikos";
repo = "opower";
tag = "v${finalAttrs.version}";
hash = "sha256-r1evfPKvuMXlOvpwqqOSyC80TpZWphYhDVQCi9IiI+8=";
};
build-system = [ setuptools ];
dependencies = [
aiohttp
aiozoneinfo
arrow
cryptography
pyotp
];
nativeCheckInputs = [
pytest-asyncio
pytestCheckHook
python-dotenv
];
disabledTestPaths = [
# network access
"tests/test_opower.py"
];
pythonImportsCheck = [ "opower" ];
disabledTests = [
# Tests require network access
"test_invalid_auth"
];
meta = {
description = "Module for getting historical and forecasted usage/cost from utilities that use opower.com";
homepage = "https://github.com/tronikos/opower";
changelog = "https://github.com/tronikos/opower/releases/tag/${finalAttrs.src.tag}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ fab ];
};
})
|