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