Merge pull request #176214 from fabaff/messagebird

python310Packages.messagebird: init at 2.1.0
This commit is contained in:
Martin Weinelt 2022-06-04 12:55:02 +02:00 committed by GitHub
commit db26cd5e07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 56 additions and 1 deletions

View File

@ -0,0 +1,52 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, requests
, pyjwt
, mock
, python-dateutil
, pytestCheckHook
, pythonOlder
}:
buildPythonPackage rec {
pname = "messagebird";
version = "2.1.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "messagebird";
repo = "python-rest-api";
rev = version;
hash = "sha256-2KVAxdHT5+Ie3ZRxXZhU0hLOtHWjIiJi+ferkYTlSn0=";
};
propagatedBuildInputs = [
pyjwt
python-dateutil
requests
];
checkInputs = [
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 ];
};
}

View File

@ -1568,7 +1568,8 @@
aiohttp-cors
];
"message_bird" = ps: with ps; [
]; # missing inputs: messagebird
messagebird
];
"met" = ps: with ps; [
pymetno
];

View File

@ -5327,6 +5327,8 @@ in {
mesonpep517 = callPackage ../development/python-modules/mesonpep517 { };
messagebird = callPackage ../development/python-modules/messagebird { };
metakernel = callPackage ../development/python-modules/metakernel { };
metar = callPackage ../development/python-modules/metar { };