Unverified Commit 5de35192 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

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: default avatarMartin Weinelt <hexa@darmstadt.ccc.de>
parents c3c15b80 887b9f48
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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 { };
    };
  };
+64 −0
Original line number Diff line number Diff line
{
  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 ];
  };
}