depot/third_party/nixpkgs/pkgs/development/python-modules/messagebird/default.nix
Default email 83627f9931 Project import generated by Copybara.
GitOrigin-RevId: 2893f56de08021cffd9b6b6dfc70fd9ccd51eb60
2024-06-24 14:47:55 -04:00

51 lines
985 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
pyjwt,
mock,
python-dateutil,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "messagebird";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "messagebird";
repo = "python-rest-api";
rev = version;
hash = "sha256-OiLhnmZ725VbyoOHvSf4nKQRA7JsxqcOv0VKBL6rUtU=";
};
propagatedBuildInputs = [
pyjwt
python-dateutil
requests
];
nativeCheckInputs = [
mock
pytestCheckHook
];
pythonImportsCheck = [ "messagebird" ];
disabledTestPaths = [
# ValueError: not enough values to unpack (expected 6, got 0)
"tests/test_request_validator.py"
];
meta = with lib; {
description = "Client for MessageBird's REST API";
homepage = "https://github.com/messagebird/python-rest-api";
license = with licenses; [ bsd2 ];
maintainers = with maintainers; [ fab ];
};
}