Skip to content

Commit

Permalink
python39Packages.pushbullet: add missing dependency (NixOS#122080)
Browse files Browse the repository at this point in the history
also switch to pytestCheckHook
  • Loading branch information
evalexpr authored May 7, 2021
1 parent ceae57e commit a014b77
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions pkgs/development/python-modules/pushbullet/default.nix
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
{ lib, buildPythonPackage, fetchPypi
, requests, websocket_client, python_magic
, pytest, mock }:
{ lib
, buildPythonPackage
, fetchPypi
, requests
, websocket_client
, python_magic
, cryptography
, pytestCheckHook
}:

buildPythonPackage rec {
pname = "pushbullet.py";
Expand All @@ -11,13 +17,17 @@ buildPythonPackage rec {
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
};

propagatedBuildInputs = [ requests websocket_client python_magic ];
propagatedBuildInputs = [ cryptography requests websocket_client python_magic ];

checkInputs = [ pytest mock ];

checkPhase = ''
PUSHBULLET_API_KEY="" py.test -k "not test_e2e and not test_auth"
preCheck = ''
export PUSHBULLET_API_KEY=""
'';
checkInputs = [ pytestCheckHook ];
disabledTests = [
"test_auth_fail"
"test_auth_success"
"test_decryption"
];

meta = with lib; {
description = "A simple python client for pushbullet.com";
Expand Down

0 comments on commit a014b77

Please sign in to comment.