2018-03-17 15:46:11 +00:00
|
|
|
{ lib, buildPythonPackage, fetchPypi
|
2018-03-17 15:53:31 +00:00
|
|
|
, requests, websocket_client, python_magic
|
|
|
|
, pytest, mock }:
|
2018-03-17 15:46:11 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pushbullet.py";
|
2018-03-17 15:53:31 +00:00
|
|
|
version = "0.11.0";
|
2018-03-17 15:46:11 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2018-03-17 15:53:31 +00:00
|
|
|
sha256 = "aa9dc7bb46e083e3497d46241154f12944a8f540e29d150330ca94db0b453b8d";
|
2018-03-17 15:46:11 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ requests websocket_client python_magic ];
|
|
|
|
|
2018-03-17 15:53:31 +00:00
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
|
|
|
checkPhase = ''
|
|
|
|
PUSHBULLET_API_KEY="" py.test -k "not test_e2e and not test_auth"
|
|
|
|
'';
|
|
|
|
|
2018-03-17 15:46:11 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "A simple python client for pushbullet.com";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/randomchars/pushbullet.py";
|
2018-03-17 15:46:11 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
};
|
|
|
|
}
|