aboutsummaryrefslogtreecommitdiff
path: root/infra/libkookie/nixpkgs/pkgs/development/python-modules/pushbullet/default.nix
blob: 68c9d9180dc8f28d5e8c5bc26f00d28fa2eb2d64 (plain)
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
{ lib, buildPythonPackage, fetchPypi
, requests, websocket_client, python_magic
, pytest, mock }:

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

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

  propagatedBuildInputs = [ requests websocket_client python_magic ];

  checkInputs = [ pytest mock ];

  checkPhase = ''
    PUSHBULLET_API_KEY="" py.test -k "not test_e2e and not test_auth"
  '';

  meta = with lib; {
    description = "A simple python client for pushbullet.com";
    homepage = "https://github.com/randomchars/pushbullet.py";
    license = licenses.mit;
  };
}