blob: afece48e23da82a9a394d403088ab066358f88e6 (
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
|
{
lib,
aiohttp,
aioresponses,
buildPythonPackage,
fetchFromGitHub,
pytest-asyncio,
pytest-raises,
pytestCheckHook,
xmltodict,
}:
buildPythonPackage rec {
pname = "aioemonitor";
version = "1.0.5";
format = "setuptools";
src = fetchFromGitHub {
owner = "bdraco";
repo = "aioemonitor";
rev = "v${version}";
sha256 = "0h8zqqy8v8r1fl9bp3m8icr2sy44p0mbfl1hbb0zni17r9r50dhn";
};
propagatedBuildInputs = [
aiohttp
xmltodict
];
nativeCheckInputs = [
aioresponses
pytest-asyncio
pytest-raises
pytestCheckHook
];
postPatch = ''
substituteInPlace setup.py --replace '"pytest-runner>=5.2",' ""
'';
pythonImportsCheck = [ "aioemonitor" ];
meta = {
description = "Python client for SiteSage Emonitor";
mainProgram = "my_example";
homepage = "https://github.com/bdraco/aioemonitor";
license = with lib.licenses; [ asl20 ];
maintainers = with lib.maintainers; [ fab ];
};
}
|