mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python310Packages.aspell-python: disable failing tests
This commit is contained in:
parent
af311ba307
commit
095f417064
1 changed files with 36 additions and 8 deletions
|
@ -1,29 +1,57 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, isPy27, aspell, aspellDicts, python }:
|
{ lib
|
||||||
|
, aspell
|
||||||
|
, aspellDicts
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchPypi
|
||||||
|
, isPy27
|
||||||
|
, pytestCheckHook
|
||||||
|
, pythonAtLeast
|
||||||
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aspell-python";
|
pname = "aspell-python";
|
||||||
version = "1.15";
|
version = "1.15";
|
||||||
|
format = "setuptools";
|
||||||
|
|
||||||
disabled = isPy27;
|
disabled = isPy27;
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchPypi {
|
||||||
inherit version;
|
|
||||||
pname = "aspell-python-py3";
|
pname = "aspell-python-py3";
|
||||||
|
inherit version;
|
||||||
extension = "tar.bz2";
|
extension = "tar.bz2";
|
||||||
sha256 = "13dk3jrvqmfvf2w9b8afj37d8bh32kcx295lyn3z7r8qch792hi0";
|
hash = "sha256-IEKRDmQY5fOH9bQk0dkUAy7UzpBOoZW4cNtVvLMcs40=";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [ aspell ];
|
buildInputs = [
|
||||||
|
aspell
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
];
|
||||||
|
|
||||||
|
preCheck = ''
|
||||||
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
|
export ASPELL_CONF="dict-dir ${aspellDicts.en}/lib/aspell"
|
||||||
export HOME=$(mktemp -d)
|
export HOME=$(mktemp -d)
|
||||||
${python.interpreter} test/unittests.py
|
|
||||||
'';
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "aspell" ];
|
pytestFlagsArray = [
|
||||||
|
"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 = with lib; {
|
meta = with lib; {
|
||||||
description = "Python wrapper for aspell (C extension and python version)";
|
description = "Python wrapper for aspell (C extension and Python version)";
|
||||||
homepage = "https://github.com/WojciechMula/aspell-python";
|
homepage = "https://github.com/WojciechMula/aspell-python";
|
||||||
license = licenses.bsd3;
|
license = licenses.bsd3;
|
||||||
maintainers = with maintainers; [ SuperSandro2000 ];
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue