Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / pushbullet-py / default.nix
blob472f4dcc5853cac1aa383250e605832c74e22021
1 { lib
2 , buildPythonPackage
3 , fetchPypi
4 , requests
5 , websocket-client
6 , python-magic
7 , cryptography
8 , pytestCheckHook
9 }:
11 buildPythonPackage rec {
12   pname = "pushbullet-py";
13   version = "0.12.0";
14   format = "setuptools";
16   src = fetchPypi {
17     inherit pname version;
18     sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
19   };
21   propagatedBuildInputs = [ cryptography requests websocket-client python-magic ];
23   preCheck = ''
24     export PUSHBULLET_API_KEY=""
25   '';
26   nativeCheckInputs = [ pytestCheckHook ];
27   disabledTests = [
28     "test_auth_fail"
29     "test_auth_success"
30     "test_decryption"
31   ];
33   meta = with lib; {
34     description = "A simple python client for pushbullet.com";
35     homepage = "https://github.com/randomchars/pushbullet.py";
36     license = licenses.mit;
37   };