python3Packages.marisa-trie: add readme_renderer (#140323)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
This commit is contained in:
parent
c1a8920dc4
commit
247bdd7f70
|
@ -2,9 +2,9 @@
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchPypi
|
, fetchPypi
|
||||||
, cython
|
, cython
|
||||||
, pytest-runner
|
|
||||||
, pytestCheckHook
|
, pytestCheckHook
|
||||||
, hypothesis
|
, hypothesis
|
||||||
|
, readme_renderer
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -16,35 +16,49 @@ buildPythonPackage rec {
|
||||||
sha256 = "bbeafb7d92839dc221365340e79d012cb50ee48a1f3f30dd916eb35a8b93db00";
|
sha256 = "bbeafb7d92839dc221365340e79d012cb50ee48a1f3f30dd916eb35a8b93db00";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
nativeBuildInputs = [
|
||||||
|
cython
|
||||||
|
];
|
||||||
|
|
||||||
|
checkInputs = [
|
||||||
|
pytestCheckHook
|
||||||
|
readme_renderer
|
||||||
|
hypothesis
|
||||||
|
];
|
||||||
|
|
||||||
postPatch = ''
|
postPatch = ''
|
||||||
substituteInPlace setup.py \
|
substituteInPlace setup.py \
|
||||||
--replace "hypothesis==" "hypothesis>="
|
--replace "hypothesis==" "hypothesis>="
|
||||||
'';
|
'';
|
||||||
|
|
||||||
nativeBuildInputs = [
|
|
||||||
cython
|
|
||||||
pytest-runner
|
|
||||||
];
|
|
||||||
|
|
||||||
preBuild = ''
|
preBuild = ''
|
||||||
./update_cpp.sh
|
./update_cpp.sh
|
||||||
'';
|
'';
|
||||||
|
|
||||||
checkInputs = [
|
disabledTestPaths = [
|
||||||
pytestCheckHook
|
# Don't test packaging
|
||||||
hypothesis
|
"tests/test_packaging.py"
|
||||||
];
|
];
|
||||||
|
|
||||||
disabledTests = [
|
disabledTests = [
|
||||||
# Pins hypothesis==2.0.0 from 2016/01 which complains about
|
# 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(...)`.
|
# 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_saveload"
|
||||||
"test_mmap"
|
"test_mmap"
|
||||||
];
|
];
|
||||||
|
|
||||||
|
pythonImportsCheck = [
|
||||||
|
"marisa_trie"
|
||||||
|
];
|
||||||
|
|
||||||
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 based on marisa-trie C++ library";
|
||||||
longDescription = "There are official SWIG-based Python bindings included in C++ library distribution; this package provides alternative Cython-based pip-installable Python bindings.";
|
longDescription = ''
|
||||||
|
There are official SWIG-based Python bindings included in C++ library distribution.
|
||||||
|
This package provides alternative Cython-based pip-installable Python bindings.
|
||||||
|
'';
|
||||||
homepage = "https://github.com/kmike/marisa-trie";
|
homepage = "https://github.com/kmike/marisa-trie";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
maintainers = with maintainers; [ ixxie ];
|
maintainers = with maintainers; [ ixxie ];
|
||||||
|
|
Loading…
Reference in a new issue