pretix.plugins.sepadebit: init at 2.6.0 (#413139)
* pretix: expose as python module to local package set This allows consuming pretix as a library for tests. * pretix.plugins.sepadebit: init at 2.6.0 --------- Co-authored-by: Martin Weinelt <hexa@darmstadt.ccc.de>
This commit is contained in:
@@ -7,6 +7,7 @@
|
||||
python3,
|
||||
gettext,
|
||||
nixosTests,
|
||||
pretix,
|
||||
plugins ? [ ],
|
||||
}:
|
||||
|
||||
@@ -35,6 +36,7 @@ let
|
||||
};
|
||||
};
|
||||
|
||||
pretix = self.toPythonModule pretix;
|
||||
pretix-plugin-build = self.callPackage ./plugin-build.nix { };
|
||||
};
|
||||
};
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
{
|
||||
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.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pretix";
|
||||
repo = "pretix-sepadebit";
|
||||
tag = "v${version}";
|
||||
hash = "sha256-o4HVPuSpYIFjxmYuL+IsJJDkv+4ARuvaDqPjxWxlhMg=";
|
||||
};
|
||||
|
||||
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
|
||||
'';
|
||||
|
||||
meta = with lib; {
|
||||
description = "Plugin to receive payments via SEPA direct debit";
|
||||
homepage = "https://github.com/pretix/pretix-sepadebit";
|
||||
license = licenses.asl20;
|
||||
maintainers = with maintainers; [ bbenno ];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user