Files
nixpkgs/pkgs/development/python-modules/messagebird/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

52 lines
983 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
requests,
pyjwt,
mock,
python-dateutil,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "messagebird";
version = "2.2.0";
format = "setuptools";
disabled = pythonOlder "3.7";
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 ];
};
}