python3Packages.aspell-python: init at 1.15

This commit is contained in:
Sandro Jäckel 2021-02-12 19:04:52 +01:00
parent a4ea4d2689
commit d999a09b24
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,31 @@
{ lib, buildPythonPackage, fetchPypi, isPy27, aspell, aspellDicts, python }:
buildPythonPackage rec {
pname = "aspell-python";
version = "1.15";
disabled = isPy27;
src = fetchPypi {
inherit version;
pname = "aspell-python-py3";
extension = "tar.bz2";
sha256 = "13dk3jrvqmfvf2w9b8afj37d8bh32kcx295lyn3z7r8qch792hi0";
};
buildInputs = [ aspell ];
checkPhase = ''
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
export HOME=$(mktemp -d)
${python.interpreter} test/unittests.py
'';
pythonImportsCheck = [ "aspell" ];
meta = with lib; {
description = "Python wrapper for aspell (C extension and python version)";
homepage = "https://github.com/WojciechMula/aspell-python";
license = licenses.bsd3;
maintainers = with maintainers; [ SuperSandro2000 ];
};
}

View file

@ -461,6 +461,8 @@ in {
asn1crypto = callPackage ../development/python-modules/asn1crypto { };
aspell-python = callPackage ../development/python-modules/aspell-python { };
aspy-yaml = callPackage ../development/python-modules/aspy.yaml { };
asteval = callPackage ../development/python-modules/asteval { };