1{ 2 lib, 3 buildPythonPackage, 4 django, 5 fetchFromGitHub, 6 pythonOlder, 7 python, 8 setuptools, 9}: 10 11buildPythonPackage rec { 12 pname = "django-parler"; 13 version = "2.3"; 14 pyproject = true; 15 16 disabled = pythonOlder "3.7"; 17 18 src = fetchFromGitHub { 19 owner = "django-parler"; 20 repo = "django-parler"; 21 tag = "v${version}"; 22 hash = "sha256-tRGifFPCXF3aa3PQWKw3tl1H1TY+lgcChUP1VdwG1cE="; 23 }; 24 25 build-system = [ setuptools ]; 26 27 dependencies = [ django ]; 28 29 # Disable failing test: article.tests.AdminArticleTestCase.test_admin_add 30 # AssertionError: '<h1>Ajout de Article (Hollandais)</h1>' not found in ... 31 # https://github.com/django-parler/django-parler/issues/358 32 preCheck = lib.optionalString (lib.versionAtLeast django.version "5.0") '' 33 rm example/article/tests.py 34 ''; 35 36 checkPhase = '' 37 runHook preCheck 38 ${python.interpreter} runtests.py 39 runHook postCheck 40 ''; 41 42 meta = { 43 description = "Simple Django model translations without nasty hacks"; 44 homepage = "https://github.com/django-parler/django-parler"; 45 changelog = "https://github.com/django-parler/django-parler/releases/tag/v${version}"; 46 license = lib.licenses.asl20; 47 maintainers = with lib.maintainers; [ derdennisop ]; 48 }; 49}