depot/third_party/nixpkgs/pkgs/development/python-modules/aspell-python/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

31 lines
834 B
Nix

{ 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 ];
};
}