blob: 623ac30c6a81fed83913267bf9b9f342d557132a (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
aiohttp,
asn1,
python-dateutil,
setuptools,
tenacity,
}:
buildPythonPackage rec {
pname = "smart-meter-texas";
version = "0.5.5";
pyproject = true;
src = fetchFromGitHub {
owner = "grahamwetzler";
repo = "smart-meter-texas";
tag = "v${version}";
hash = "sha256-dHWcYrBtmKdEIU45rMy4KvoPX88hnRpd4KBlbJaNvgI=";
};
postPatch = ''
substituteInPlace setup.py \
--replace-fail "pytest-runner" ""
'';
build-system = [ setuptools ];
dependencies = [
aiohttp
asn1
python-dateutil
tenacity
];
# no tests implemented
doCheck = false;
meta = {
description = "Connect to and retrieve data from the unofficial Smart Meter Texas API";
homepage = "https://github.com/grahamwetzler/smart-meter-texas";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ dotlambda ];
};
}
|