python39Packages.pushbullet: add missing dependency (#122080)
also switch to pytestCheckHook
This commit is contained in:
parent
ceae57eeb4
commit
a014b77ade
@ -1,6 +1,12 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi
|
{ lib
|
||||||
, requests, websocket_client, python_magic
|
, buildPythonPackage
|
||||||
, pytest, mock }:
|
, fetchPypi
|
||||||
|
, requests
|
||||||
|
, websocket_client
|
||||||
|
, python_magic
|
||||||
|
, cryptography
|
||||||
|
, pytestCheckHook
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "pushbullet.py";
|
pname = "pushbullet.py";
|
||||||
@ -11,13 +17,17 @@ buildPythonPackage rec {
|
|||||||
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
|
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests websocket_client python_magic ];
|
propagatedBuildInputs = [ cryptography requests websocket_client python_magic ];
|
||||||
|
|
||||||
checkInputs = [ pytest mock ];
|
preCheck = ''
|
||||||
|
export PUSHBULLET_API_KEY=""
|
||||||
checkPhase = ''
|
|
||||||
PUSHBULLET_API_KEY="" py.test -k "not test_e2e and not test_auth"
|
|
||||||
'';
|
'';
|
||||||
|
checkInputs = [ pytestCheckHook ];
|
||||||
|
disabledTests = [
|
||||||
|
"test_auth_fail"
|
||||||
|
"test_auth_success"
|
||||||
|
"test_decryption"
|
||||||
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "A simple python client for pushbullet.com";
|
description = "A simple python client for pushbullet.com";
|
||||||
|
Loading…
Reference in New Issue
Block a user