Files
nixpkgs/pkgs/development/python-modules/aspell-python/default.nix
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

56 lines
1.1 KiB
Nix

{
lib,
aspell,
aspellDicts,
buildPythonPackage,
fetchPypi,
isPy27,
pytestCheckHook,
pythonAtLeast,
setuptools,
}:
buildPythonPackage rec {
pname = "aspell-python";
version = "1.15";
pyproject = true;
disabled = isPy27;
src = fetchPypi {
pname = "aspell-python-py3";
inherit version;
extension = "tar.bz2";
hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40=";
};
build-system = [ setuptools ];
buildInputs = [ aspell ];
nativeCheckInputs = [ pytestCheckHook ];
preCheck = ''
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
export HOME=$(mktemp -d)
'';
enabledTestPaths = [ "test/unittests.py" ];
disabledTests = lib.optionals (pythonAtLeast "3.10") [
# https://github.com/WojciechMula/aspell-python/issues/22
"test_add"
"test_get"
"test_saveall"
];
pythonImportsCheck = [ "aspell" ];
meta = {
description = "Python wrapper for aspell (C extension and Python version)";
homepage = "https://github.com/WojciechMula/aspell-python";
license = lib.licenses.bsd3;
maintainers = [ ];
};
}