diff options
| author | Robin Gloster <mail@glob.in> | 2021-05-24 09:55:24 -0500 |
|---|---|---|
| committer | Robin Gloster <mail@glob.in> | 2021-05-24 09:55:24 -0500 |
| commit | 4bc5fbef9d159e143fb7e2c3231932e6e76f667c (patch) | |
| tree | e2198f5c552e0667d838b8ec764ddb3a4d8f6dec /pkgs/development/python-modules/pushbullet/default.nix | |
| parent | jq: fix build with structured-attrs on darwin (diff) | |
| parent | Merge pull request #123802 from superherointj/package-virtmanager-bugfix (diff) | |
| download | nixpkgs-origin/structured-attrs.tar.gz | |
Merge remote-tracking branch 'upstream/master' into structured-attrsorigin/structured-attrs
Diffstat (limited to 'pkgs/development/python-modules/pushbullet/default.nix')
| -rw-r--r-- | pkgs/development/python-modules/pushbullet/default.nix | 26 |
1 files changed, 18 insertions, 8 deletions
diff --git a/pkgs/development/python-modules/pushbullet/default.nix b/pkgs/development/python-modules/pushbullet/default.nix index 68c9d9180dc8..43cab7db6756 100644 --- a/pkgs/development/python-modules/pushbullet/default.nix +++ b/pkgs/development/python-modules/pushbullet/default.nix @@ -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"; @@ -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"; |
