mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-23 07:23:20 +00:00
python3Packages.django-parler: Disable failing tests (#352293)
This commit is contained in:
commit
acae444f39
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user