2021-05-20 23:08:51 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
|
|
|
, requests
|
2021-06-28 23:13:55 +00:00
|
|
|
, websocket-client
|
2022-05-18 14:49:53 +00:00
|
|
|
, python-magic
|
2021-05-20 23:08:51 +00:00
|
|
|
, cryptography
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-10-21 18:38:19 +00:00
|
|
|
pname = "pushbullet-py";
|
2020-11-06 00:33:48 +00:00
|
|
|
version = "0.12.0";
|
2022-10-21 18:38:19 +00:00
|
|
|
format = "setuptools";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2020-11-06 00:33:48 +00:00
|
|
|
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
propagatedBuildInputs = [ cryptography requests websocket-client python-magic ];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2021-05-20 23:08:51 +00:00
|
|
|
preCheck = ''
|
|
|
|
export PUSHBULLET_API_KEY=""
|
2020-04-24 23:36:52 +00:00
|
|
|
'';
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2021-05-20 23:08:51 +00:00
|
|
|
disabledTests = [
|
|
|
|
"test_auth_fail"
|
|
|
|
"test_auth_success"
|
|
|
|
"test_decryption"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple python client for pushbullet.com";
|
|
|
|
homepage = "https://github.com/randomchars/pushbullet.py";
|
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|