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