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