nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 1.1 kB view raw
1{ 2 lib, 3 aspell, 4 aspellDicts, 5 buildPythonPackage, 6 fetchPypi, 7 isPy27, 8 pytestCheckHook, 9 setuptools, 10}: 11 12buildPythonPackage rec { 13 pname = "aspell-python"; 14 version = "1.15"; 15 pyproject = true; 16 17 disabled = isPy27; 18 19 src = fetchPypi { 20 pname = "aspell-python-py3"; 21 inherit version; 22 extension = "tar.bz2"; 23 hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40="; 24 }; 25 26 build-system = [ setuptools ]; 27 28 buildInputs = [ aspell ]; 29 30 nativeCheckInputs = [ pytestCheckHook ]; 31 32 preCheck = '' 33 export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell" 34 export HOME=$(mktemp -d) 35 ''; 36 37 enabledTestPaths = [ "test/unittests.py" ]; 38 39 disabledTests = [ 40 # https://github.com/WojciechMula/aspell-python/issues/22 41 "test_add" 42 "test_get" 43 "test_saveall" 44 ]; 45 46 pythonImportsCheck = [ "aspell" ]; 47 48 meta = { 49 description = "Python wrapper for aspell (C extension and Python version)"; 50 homepage = "https://github.com/WojciechMula/aspell-python"; 51 license = lib.licenses.bsd3; 52 maintainers = [ ]; 53 }; 54}