lol

Merge pull request #154882 from fabaff/fix-aspell-python

python310Packages.aspell-python: disable failing tests

authored by

Fabian Affolter and committed by
GitHub
36797a3c 40b78f15

+36 -8
+36 -8
pkgs/development/python-modules/aspell-python/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi, isPy27, aspell, aspellDicts, python }: 1 + { lib 2 + , aspell 3 + , aspellDicts 4 + , buildPythonPackage 5 + , fetchPypi 6 + , isPy27 7 + , pytestCheckHook 8 + , pythonAtLeast 9 + }: 2 10 3 11 buildPythonPackage rec { 4 12 pname = "aspell-python"; 5 13 version = "1.15"; 14 + format = "setuptools"; 15 + 6 16 disabled = isPy27; 7 17 8 18 src = fetchPypi { 9 - inherit version; 10 19 pname = "aspell-python-py3"; 20 + inherit version; 11 21 extension = "tar.bz2"; 12 - sha256 = "13dk3jrvqmfvf2w9b8afj37d8bh32kcx295lyn3z7r8qch792hi0"; 22 + hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40="; 13 23 }; 14 24 15 - buildInputs = [ aspell ]; 25 + buildInputs = [ 26 + aspell 27 + ]; 16 28 17 - checkPhase = '' 29 + checkInputs = [ 30 + pytestCheckHook 31 + ]; 32 + 33 + preCheck = '' 18 34 export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell" 19 35 export HOME=$(mktemp -d) 20 - ${python.interpreter} test/unittests.py 21 36 ''; 22 37 23 - pythonImportsCheck = [ "aspell" ]; 38 + pytestFlagsArray = [ 39 + "test/unittests.py" 40 + ]; 41 + 42 + disabledTests = lib.optionals (pythonAtLeast "3.10") [ 43 + # https://github.com/WojciechMula/aspell-python/issues/22 44 + "test_add" 45 + "test_get" 46 + "test_saveall" 47 + ]; 48 + 49 + pythonImportsCheck = [ 50 + "aspell" 51 + ]; 24 52 25 53 meta = with lib; { 26 - description = "Python wrapper for aspell (C extension and python version)"; 54 + description = "Python wrapper for aspell (C extension and Python version)"; 27 55 homepage = "https://github.com/WojciechMula/aspell-python"; 28 56 license = licenses.bsd3; 29 57 maintainers = with maintainers; [ SuperSandro2000 ];