1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 requests,
6 pyjwt,
7 mock,
8 python-dateutil,
9 pytestCheckHook,
10 pythonOlder,
11}:
12
13buildPythonPackage rec {
14 pname = "messagebird";
15 version = "2.2.0";
16 format = "setuptools";
17
18 disabled = pythonOlder "3.7";
19
20 src = fetchFromGitHub {
21 owner = "messagebird";
22 repo = "python-rest-api";
23 rev = version;
24 hash = "sha256-OiLhnmZ725VbyoOHvSf4nKQRA7JsxqcOv0VKBL6rUtU=";
25 };
26
27 propagatedBuildInputs = [
28 pyjwt
29 python-dateutil
30 requests
31 ];
32
33 nativeCheckInputs = [
34 mock
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [ "messagebird" ];
39
40 disabledTestPaths = [
41 # ValueError: not enough values to unpack (expected 6, got 0)
42 "tests/test_request_validator.py"
43 ];
44
45 meta = with lib; {
46 description = "Client for MessageBird's REST API";
47 homepage = "https://github.com/messagebird/python-rest-api";
48 license = with licenses; [ bsd2 ];
49 maintainers = with maintainers; [ fab ];
50 };
51}