Unverified Commit acae444f authored by Yt's avatar Yt Committed by GitHub
Browse files

python3Packages.django-parler: Disable failing tests (#352293)

parents 630cb66f 597ce7aa
Loading
Loading
Loading
Loading
+15 −5
Original line number Diff line number Diff line
@@ -5,12 +5,13 @@
  fetchFromGitHub,
  pythonOlder,
  python,
  setuptools,
}:

buildPythonPackage rec {
  pname = "django-parler";
  version = "2.3";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -21,7 +22,16 @@ buildPythonPackage rec {
    hash = "sha256-tRGifFPCXF3aa3PQWKw3tl1H1TY+lgcChUP1VdwG1cE=";
  };

  propagatedBuildInputs = [ django ];
  build-system = [ setuptools ];

  dependencies = [ django ];

  # Disable failing test: article.tests.AdminArticleTestCase.test_admin_add
  # AssertionError: '<h1>Ajout de Article (Hollandais)</h1>' not found in ...
  # https://github.com/django-parler/django-parler/issues/358
  preCheck = lib.optionalString (lib.versionAtLeast django.version "5.0") ''
    rm example/article/tests.py
  '';

  checkPhase = ''
    runHook preCheck
@@ -29,11 +39,11 @@ buildPythonPackage rec {
    runHook postCheck
  '';

  meta = with lib; {
  meta = {
    description = "Simple Django model translations without nasty hacks";
    homepage = "https://github.com/django-parler/django-parler";
    changelog = "https://github.com/django-parler/django-parler/releases/tag/v${version}";
    license = licenses.asl20;
    maintainers = with maintainers; [ derdennisop ];
    license = lib.licenses.asl20;
    maintainers = with lib.maintainers; [ derdennisop ];
  };
}