Files
nixpkgs/pkgs/development/python-modules/onlinepayments-sdk-python3/default.nix
T
Martin Weinelt 096e3c01ff python3Packages.onlinepayments-sdk-python3: init at 4.23.0
Dependency for pretix-worldlinedirect plugin.
2026-01-27 23:35:50 +01:00

58 lines
1.1 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
requests,
requests-toolbelt,
mockito,
pytestCheckHook,
}:
buildPythonPackage (finalAttrs: {
pname = "onlinepayments-sdk-python3";
version = "4.23.0";
pyproject = true;
src = fetchFromGitHub {
owner = "wl-online-payments-direct";
repo = "sdk-python3";
rev = finalAttrs.version;
hash = "sha256-IX9kiM5ZtX4uzW+D+Bbt8535CqMtdTtv0mpDo5Swstg=";
};
build-system = [ setuptools ];
dependencies = [
requests
requests-toolbelt
];
nativeCheckInputs = [
mockito
pytestCheckHook
];
disabledTestPaths = [
# requires api key
"tests/integration"
];
disabledTests = [
# missing fixtures
"testConnection_request"
"testConnection_response"
];
pythonImportsCheck = [
"onlinepayments"
];
meta = {
description = "SDK to communicate with the Online Payments platform using the Online Payments Server API";
homepage = "https://github.com/wl-online-payments-direct/sdk-python3";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ hexa ];
};
})