python3.pkgs.paperwork-backend: fix flaky test

+20 -1
+12
pkgs/applications/office/paperwork/flaky_test.patch
··· 1 + diff --git a/paperwork-backend/tests/docimport/tests_converted.py b/paperwork-backend/tests/docimport/tests_converted.py 2 + index 1d1ae39b..bda63fce 100644 3 + --- a/paperwork-backend/tests/docimport/tests_converted.py 4 + +++ b/paperwork-backend/tests/docimport/tests_converted.py 5 + @@ -102,6 +102,7 @@ class TestConvertedImport(unittest.TestCase): 6 + ) 7 + ) 8 + 9 + + @unittest.skip("flaky test: https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700") 10 + def test_import_duplicated_docx(self): 11 + with tempfile.TemporaryDirectory() as tmp_dir: 12 + self.config.settings = {
+8 -1
pkgs/applications/office/paperwork/paperwork-backend.nix
··· 31 31 32 32 sourceRoot = "source/paperwork-backend"; 33 33 34 - patchPhase = '' 34 + patches = [ 35 + # disables a flaky test https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035#note_1493700 36 + ./flaky_test.patch 37 + ]; 38 + 39 + patchFlags = [ "-p2" ]; 40 + 41 + postPatch = '' 35 42 echo 'version = "${version}"' > src/paperwork_backend/_version.py 36 43 chmod a+w -R .. 37 44 patchShebangs ../tools