blob: a2198c258e60cf2ecd98e8ada9fecfb0cd3347ca (
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
58
59
|
{ lib
, buildPythonPackage
, fake-useragent
, fetchFromGitHub
, pytest-aiohttp
, pytestCheckHook
, pythonOlder
, requests
, requests-mock
, responses
, simplejson
}:
buildPythonPackage rec {
pname = "pykeyatome";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "jugla";
repo = "pyKeyAtome";
rev = "V${version}";
sha256 = "1lvwxcr2ay8h5sr4lmjgs7xgszl1q8ciaqdn6cmrlra27jssl5ax";
};
propagatedBuildInputs = [
fake-useragent
requests
simplejson
];
checkInputs = [
pytest-aiohttp
pytestCheckHook
requests-mock
responses
];
disabledTests = [
# Tests require network access
"test_consumption"
"test_get_live"
"test_login"
"test_relog_after_session_down"
];
pythonImportsCheck = [
"pykeyatome"
];
meta = with lib; {
description = "Python module to get data from Atome Key";
homepage = "hhttps://github.com/jugla/pyKeyAtome";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}
|