summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/messagebird/default.nix
blob: 2705e2deca5ebf66f6e7fc10eea06065ad88b3e3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  requests,
  pyjwt,
  mock,
  python-dateutil,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "messagebird";
  version = "2.2.0";
  format = "setuptools";

  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 = {
    description = "Client for MessageBird's REST API";
    homepage = "https://github.com/messagebird/python-rest-api";
    license = with lib.licenses; [ bsd2 ];
    maintainers = with lib.maintainers; [ fab ];
  };
}