1{ lib, buildPythonPackage, fetchPypi, isPy27, aspell, aspellDicts, python }: 2 3buildPythonPackage rec { 4 pname = "aspell-python"; 5 version = "1.15"; 6 disabled = isPy27; 7 8 src = fetchPypi { 9 inherit version; 10 pname = "aspell-python-py3"; 11 extension = "tar.bz2"; 12 sha256 = "13dk3jrvqmfvf2w9b8afj37d8bh32kcx295lyn3z7r8qch792hi0"; 13 }; 14 15 buildInputs = [ aspell ]; 16 17 checkPhase = '' 18 export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell" 19 export HOME=$(mktemp -d) 20 ${python.interpreter} test/unittests.py 21 ''; 22 23 pythonImportsCheck = [ "aspell" ]; 24 25 meta = with lib; { 26 description = "Python wrapper for aspell (C extension and python version)"; 27 homepage = "https://github.com/WojciechMula/aspell-python"; 28 license = licenses.bsd3; 29 maintainers = with maintainers; [ SuperSandro2000 ]; 30 }; 31}