Commit 064446a5 authored by Robert Schütz's avatar Robert Schütz
Browse files

python3Packages.django-stdimage: drop

parent 8c660543
Loading
Loading
Loading
Loading
+0 −63
Original line number Diff line number Diff line
{
  buildPythonPackage,
  django,
  fetchFromGitHub,
  lib,
  pytest-django,
  pytestCheckHook,
  setuptools-scm,
  pillow,
  pytest-cov,
  gettext,
  pythonOlder,
  pythonAtLeast,
}:
buildPythonPackage rec {
  pname = "django-stdimage";
  version = "6.0.2";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "codingjoe";
    repo = "django-stdimage";
    tag = version;
    hash = "sha256-uwVU3Huc5fitAweShJjcMW//GBeIpJcxqKKLGo/EdIs=";
  };

  disabled = pythonOlder "3.8" || pythonAtLeast "3.13";

  dependencies = [
    django
    pillow
  ];

  build-system = [ setuptools-scm ];
  nativeBuildInputs = [ gettext ];

  doCheck = true;
  preCheck = ''
    export DJANGO_SETTINGS_MODULE=tests.settings
  '';
  disabledTests = [
    # SuspiciousFileOperation: Detected path traversal attempt (Even appear in upstream)
    "test_variations_override"
  ];
  pythonImportsCheck = [
    "stdimage"
    "stdimage.validators"
    "stdimage.models"
  ];
  nativeCheckInputs = [
    pytest-django
    pytest-cov
    pytestCheckHook
  ];

  meta = with lib; {
    description = "Django Standardized Image Field";
    homepage = "https://github.com/codingjoe/django-stdimage";
    changelog = "https://github.com/codingjoe/django-stdimage/releases/tag/${version}";
    license = licenses.mit;
    maintainers = with maintainers; [ kurogeek ];
  };
}
+0 −5
Original line number Diff line number Diff line
@@ -4378,11 +4378,6 @@ self: super: with self; {
  django-statici18n = callPackage ../development/python-modules/django-statici18n { };
  django-stdimage = callPackage ../development/python-modules/django-stdimage {
    django = django_4;
    pytest-django = pytest-django.override { django = django_4; };
  };
  django-storages = callPackage ../development/python-modules/django-storages { };
  django-structlog = callPackage ../development/python-modules/django-structlog { };