blob: 9ba3ea89d40572aee30595423f31f66c25954825 (
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
|
{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
websocket-client,
python-magic,
cryptography,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "pushbullet-py";
version = "0.12.0";
pyproject = true;
src = fetchPypi {
inherit version;
pname = "pushbullet.py";
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
cryptography
python-magic
requests
websocket-client
];
preCheck = ''
export PUSHBULLET_API_KEY=""
'';
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"test_auth_fail"
"test_auth_success"
"test_decryption"
]
++ lib.optionals (pythonAtLeast "3.12") [
# AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?
"test_new_device_ok"
"test_new_chat_ok"
];
meta = {
description = "Simple python client for pushbullet.com";
homepage = "https://github.com/randomchars/pushbullet.py";
license = lib.licenses.mit;
};
}
|