summary refs log tree commit diff
path: root/pkgs/development/python-modules/pushbullet/default.nix
blob: 92338d92531b9503bd576e60c8d79bcd1deb4614 (plain) (blame)
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
{ lib
, buildPythonPackage
, fetchPypi
, requests
, websocket-client
, python_magic
, cryptography
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "pushbullet.py";
  version = "0.12.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
  };

  propagatedBuildInputs = [ cryptography requests websocket-client python_magic ];

  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";
    homepage = "https://github.com/randomchars/pushbullet.py";
    license = licenses.mit;
  };
}