0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00
nixpkgs/pkgs/development/python-modules/pushbullet-py/default.nix
Alexis Hildebrandt 755b915a15 treewide: Remove indefinite article from meta.description
nix run nixpkgs#silver-searcher -- -G '\.nix$' -0l 'description.*"[Aa]n?' pkgs \
  | xargs -0 nix run nixpkgs#gnused -- -i '' -Ee 's/(description.*")[Aa]n? (.)/\1\U\2/'
2024-06-09 23:07:45 +02:00

56 lines
1.2 KiB
Nix

{
lib,
buildPythonPackage,
fetchPypi,
setuptools,
requests,
websocket-client,
python-magic,
cryptography,
pytestCheckHook,
pythonAtLeast,
}:
buildPythonPackage rec {
pname = "pushbullet-py";
version = "0.12.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
sha256 = "917883e1af4a0c979ce46076b391e0243eb8fe0a81c086544bcfa10f53e5ae64";
};
nativeBuildInputs = [ setuptools ];
propagatedBuildInputs = [
cryptography
python-magic
requests
websocket-client
];
preCheck = ''
export PUSHBULLET_API_KEY=""
'';
nativeCheckInputs = [ pytestCheckHook ];
disabledTests =
[
"test_auth_fail"
"test_auth_success"
"test_decryption"
]
++ lib.optionals (pythonAtLeast "3.12") [
# AttributeError: 'called_once_with' is not a valid assertion. Use a spec for the mock if 'called_once_with' is meant to be an attribute.. Did you mean: 'assert_called_once_with'?
"test_new_device_ok"
"test_new_chat_ok"
];
meta = with lib; {
description = "Simple python client for pushbullet.com";
homepage = "https://github.com/randomchars/pushbullet.py";
license = licenses.mit;
};
}