Merge pull request #235919 from fabaff/wagtail-localize-fix

python311Packages.wagtail-localize: disable failing test
This commit is contained in:
Fabian Affolter 2023-06-06 09:29:10 +02:00 committed by GitHub
commit 10369ca43c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 35 additions and 22 deletions

View File

@ -1,4 +1,5 @@
{ buildPythonPackage
{ lib
, buildPythonPackage
, dj-database-url
, django
, django-rq
@ -6,9 +7,9 @@
, flit-core
, freezegun
, google-cloud-translate
, lib
, polib
, python
, pythonOlder
, typing-extensions
, wagtail
}:
@ -18,13 +19,19 @@ buildPythonPackage rec {
version = "1.5";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
repo = pname;
owner = "wagtail";
rev = "v${version}";
sha256 = "sha256-aNz4OoUUXWMCahMxuYBxvNWnw7Inxd5svBgwLgoirW8=";
rev = "refs/tags/v${version}";
hash = "sha256-aNz4OoUUXWMCahMxuYBxvNWnw7Inxd5svBgwLgoirW8=";
};
nativeBuildInputs = [
flit-core
];
propagatedBuildInputs = [
django
wagtail
@ -32,20 +39,22 @@ buildPythonPackage rec {
typing-extensions
];
checkInputs = [
nativeCheckInputs = [
dj-database-url
django-rq
freezegun
google-cloud-translate
];
nativeBuildInputs = [ flit-core ];
passthru.optional-dependencies = {
google = [ google-cloud-translate ];
google = [
google-cloud-translate
];
};
checkPhase = ''
# test_translate_html fails with later Beautifulsoup releases
rm wagtail_localize/machine_translators/tests/test_dummy_translator.py
${python.interpreter} testmanage.py test
'';

View File

@ -1,4 +1,5 @@
{ anyascii
{ lib
, anyascii
, beautifulsoup4
, buildPythonPackage
, callPackage
@ -12,10 +13,10 @@
, fetchPypi
, html5lib
, l18n
, lib
, openpyxl
, permissionedforms
, pillow
, pythonOlder
, requests
, telepath
, willow
@ -24,10 +25,13 @@
buildPythonPackage rec {
pname = "wagtail";
version = "4.2.2";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-s89gs3H//Dc3k6BLZUC4APyDgiWY9LetWAkI+kXQTf8=";
hash = "sha256-s89gs3H//Dc3k6BLZUC4APyDgiWY9LetWAkI+kXQTf8=";
};
postPatch = ''
@ -36,23 +40,23 @@ buildPythonPackage rec {
'';
propagatedBuildInputs = [
anyascii
beautifulsoup4
django
django_treebeard
django-filter
django-modelcluster
django-taggit
django_treebeard
djangorestframework
django-filter
pillow
beautifulsoup4
html5lib
willow
requests
openpyxl
anyascii
draftjs-exporter
permissionedforms
telepath
html5lib
l18n
openpyxl
permissionedforms
pillow
requests
telepath
willow
];
# Tests are in separate derivation because they require a package that depends