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

This commit is contained in:
Yt 2024-11-02 11:37:36 -04:00 committed by GitHub
commit acae444f39
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 ];
};
}