python3Packages.marisa-trie: disable broken tests

Some tests fail due hypothesis healthchecks, that complains about a
temporary directory not being cleaned between tests.

This is due to the hypothesis 6.x upgrade, while the library pins 2.0.0
from 2016.
This commit is contained in:
Martin Weinelt 2021-06-20 20:27:52 +02:00
parent a5adf85264
commit 492969e370

View file

@ -3,7 +3,7 @@
, fetchPypi , fetchPypi
, cython , cython
, pytestrunner , pytestrunner
, pytest , pytestCheckHook
, hypothesis , hypothesis
}: }:
@ -21,13 +21,26 @@ buildPythonPackage rec {
--replace "hypothesis==" "hypothesis>=" --replace "hypothesis==" "hypothesis>="
''; '';
nativeBuildInputs = [ cython pytestrunner ]; nativeBuildInputs = [
cython
pytestrunner
];
preBuild = '' preBuild = ''
./update_cpp.sh ./update_cpp.sh
''; '';
checkInputs = [ pytest hypothesis ]; checkInputs = [
pytestCheckHook
hypothesis
];
disabledTests = [
# Pins hypothesis==2.0.0 from 2016/01 which complains about
# hypothesis.errors.FailedHealthCheck: tests/test_trie.py::[...] uses the 'tmpdir' fixture, which is reset between function calls but not between test cases generated by `@given(...)`.
"test_saveload"
"test_mmap"
];
meta = with lib; { meta = with lib; {
description = "Static memory-efficient Trie-like structures for Python (2.x and 3.x) based on marisa-trie C++ library"; description = "Static memory-efficient Trie-like structures for Python (2.x and 3.x) based on marisa-trie C++ library";