nixpkgs/pkgs/development/python-modules/pushbullet-py/default.nix
Guillaume Girol 33afbf39f6 treewide: switch to nativeCheckInputs
checkInputs used to be added to nativeBuildInputs. Now we have
nativeCheckInputs to do that instead. Doing this treewide change allows
to keep hashes identical to before the introduction of
nativeCheckInputs.
2023-01-21 12:00:00 +00:00

38 lines
812 B
Nix

{ lib
, buildPythonPackage
, fetchPypi
, requests
, websocket-client
, python-magic
, cryptography
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "pushbullet-py";
version = "0.12.0";
format = "setuptools";
src = fetchPypi {
inherit pname version;
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
};
propagatedBuildInputs = [ cryptography requests websocket-client python-magic ];
preCheck = ''
export PUSHBULLET_API_KEY=""
'';
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
"test_auth_fail"
"test_auth_success"
"test_decryption"
];
meta = with lib; {
description = "A simple python client for pushbullet.com";
homepage = "https://github.com/randomchars/pushbullet.py";
license = licenses.mit;
};
}