Unverified Commit 6b97da38 authored by dotlambda's avatar dotlambda Committed by GitHub
Browse files

python3Packages.django-dbbackup: init at 5.2.0 (#500634)

parents 013b228f 93f0956a
Loading
Loading
Loading
Loading
+56 −0
Original line number Diff line number Diff line
{
  buildPythonPackage,
  django,
  fetchFromGitHub,
  gnupg,
  lib,
  psycopg2,
  pytestCheckHook,
  python-dotenv,
  python-gnupg,
  testfixtures,
  writableTmpDirAsHomeHook,
  hatchling,
}:
buildPythonPackage (finalAttrs: {
  pname = "django-dbbackup";
  version = "5.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Archmonger";
    repo = "django-dbbackup";
    tag = finalAttrs.version;
    hash = "sha256-fl4ezDLHO6KwLfX5KMK9uMonONJCCDLyZUj9KMRZsGc=";
  };

  build-system = [ hatchling ];

  dependencies = [
    django
  ];

  preCheck = ''
    export DJANGO_SETTINGS_MODULE=tests.settings
  '';

  pythonImportsCheck = [ "dbbackup" ];

  nativeCheckInputs = [
    gnupg
    python-gnupg
    psycopg2
    pytestCheckHook
    python-dotenv
    testfixtures
    writableTmpDirAsHomeHook
  ];

  meta = {
    description = "Management commands to help backup and restore your project database and media files";
    homepage = "https://github.com/Archmonger/django-dbbackup";
    changelog = "https://github.com/Archmonger/django-dbbackup/blob/${finalAttrs.src.tag}/CHANGELOG.md";
    license = lib.licenses.bsd3;
    maintainers = with lib.maintainers; [ kurogeek ];
  };
})
+2 −0
Original line number Diff line number Diff line
@@ -4146,6 +4146,8 @@ self: super: with self; {
  django-currentuser = callPackage ../development/python-modules/django-currentuser { };
  django-dbbackup = callPackage ../development/python-modules/django-dbbackup { };
  django-debug-toolbar = callPackage ../development/python-modules/django-debug-toolbar { };
  django-dynamic-preferences =