mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-10-04 14:00:04 +00:00
71 lines
1.2 KiB
Nix
71 lines
1.2 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
|
|
# build-system
|
|
pretix-plugin-build,
|
|
setuptools,
|
|
|
|
# dependencies
|
|
django-localflavor,
|
|
sepaxml,
|
|
|
|
# tests
|
|
django-scopes,
|
|
pretix,
|
|
pytest-django,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pretix-sepadebit";
|
|
version = "2.7.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "pretix";
|
|
repo = "pretix-sepadebit";
|
|
tag = "v${version}";
|
|
hash = "sha256-CHhen9rtg3tu0UtlbXzee714fVc5tU4Y1rDqdMlzPYY=";
|
|
};
|
|
|
|
build-system = [
|
|
pretix-plugin-build
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
django-localflavor
|
|
sepaxml
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"pretix_sepadebit"
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
django-scopes
|
|
pretix
|
|
pytest-django
|
|
pytestCheckHook
|
|
];
|
|
|
|
preCheck = ''
|
|
export DJANGO_SETTINGS_MODULE=pretix.testutils.settings
|
|
'';
|
|
|
|
disabledTests = [
|
|
# https://github.com/pretix/pretix-sepadebit/issues/69
|
|
"test_mail_context"
|
|
"test_call_mail_context"
|
|
];
|
|
|
|
meta = {
|
|
description = "Plugin to receive payments via SEPA direct debit";
|
|
homepage = "https://github.com/pretix/pretix-sepadebit";
|
|
license = lib.licenses.asl20;
|
|
maintainers = with lib.maintainers; [ bbenno ];
|
|
};
|
|
}
|