blob: 37553cf69ea39a760010560fa0957b2029b553d9 (
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
|
{ lib
, aiohttp
, arrow
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, pythonRelaxDepsHook
, setuptools
}:
buildPythonPackage rec {
pname = "opower";
version = "0.0.15";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "tronikos";
repo = "opower";
rev = "refs/tags/v${version}";
hash = "sha256-hSwKdxtWgxJCdKk9tw7iCBC7I4buxbRfx4GRwyym6rg=";
};
pythonRemoveDeps = [
# https://github.com/tronikos/opower/pull/4
"asyncio"
];
nativeBuildInputs = [
pythonRelaxDepsHook
setuptools
];
propagatedBuildInputs = [
aiohttp
arrow
];
nativeCheckInputs = [
pytestCheckHook
];
pythonImportsCheck = [
"opower"
];
meta = with lib; {
description = "Module for getting historical and forecasted usage/cost from utilities that use opower.com";
homepage = "https://github.com/tronikos/opower";
license = licenses.asl20;
maintainers = with maintainers; [ fab ];
};
}
|