From 59ff2493f78646dcbf7a0e718ee9806513823750 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sat, 4 Jun 2022 11:29:14 +0200 Subject: [PATCH] python310Packages.messagebird: init at 2.1.0 --- .../python-modules/messagebird/default.nix | 52 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 + 2 files changed, 54 insertions(+) create mode 100644 pkgs/development/python-modules/messagebird/default.nix diff --git a/pkgs/development/python-modules/messagebird/default.nix b/pkgs/development/python-modules/messagebird/default.nix new file mode 100644 index 000000000000..2b428964655f --- /dev/null +++ b/pkgs/development/python-modules/messagebird/default.nix @@ -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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 307c54fbec31..82e219a9a647 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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 { };