Commit 1817eb9b authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.django-structlog: drop

parent 064446a5
Loading
Loading
Loading
Loading
+0 −81
Original line number Diff line number Diff line
{
  buildPythonPackage,
  fetchFromGitHub,
  lib,
  setuptools,
  python,
  pkgs,
}:
buildPythonPackage rec {
  pname = "django-structlog";
  version = "10.0.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jrobichaud";
    repo = "django-structlog";
    tag = version;
    hash = "sha256-BNZ+nk2NK5x2YsTDZjH5BVizXAyLZhKp8zRvkWi068k=";
  };

  dependencies = with python.pkgs; [
    colorama
    django
    django-allauth
    crispy-bootstrap5
    django-crispy-forms
    django-environ
    django-extensions
    django-ipware
    django-model-utils
    django-ninja
    django-redis
    djangorestframework
    structlog
  ];

  optional-dependencies.celery = with python.pkgs; [ celery ];

  build-system = [ setuptools ];
  doCheck = true;
  preCheck = ''
    export DJANGO_SETTINGS_MODULE=config.settings.test_demo_app

    ${pkgs.valkey}/bin/redis-server &
    REDIS_PID=$!
  '';
  postCheck = ''
    kill $REDIS_PID
  '';

  pytestFlags = [
    "-x"
    "--cov=./django_structlog_demo_project"
    "--cov-append django_structlog_demo_project"
  ];
  pythonImportsCheck = [
    "structlog"
    "django_structlog"
  ];

  nativeCheckInputs = with python.pkgs; [
    celery
    factory-boy
    pytest-asyncio
    pytest-cov
    pytest-django
    pytest-mock
    pytest-sugar
    pytestCheckHook
  ];

  __darwinAllowLocalNetworking = true;

  meta = with lib; {
    description = "Structured Logging for Django";
    homepage = "https://github.com/jrobichaud/django-structlog";
    changelog = "https://github.com/jrobichaud/django-structlog/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ kurogeek ];
  };
}
+0 −2
Original line number Diff line number Diff line
@@ -4380,8 +4380,6 @@ self: super: with self; {
  django-storages = callPackage ../development/python-modules/django-storages { };
  django-structlog = callPackage ../development/python-modules/django-structlog { };
  django-stubs = callPackage ../development/python-modules/django-stubs { };
  django-stubs-ext = callPackage ../development/python-modules/django-stubs-ext { };