1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-12-20 21:17:46 +00:00
nixpkgs/pkgs/development/python-modules/pushbullet/default.nix
2020-11-04 23:17:56 -08:00

28 lines
690 B
Nix

{ 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;
};
}