diff options
author | Fabian Affolter <fabian@affolter-engineering.ch> | 2021-10-03 04:35:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-03 04:35:53 +0200 |
commit | 247bdd7f70d94ef4ff51a098c57fa80c919efb9d (patch) | |
tree | 103c0168f6d4a8139220a6082f8d85b539ec11f1 /pkgs/development/python-modules/marisa-trie | |
parent | c1a8920dc4bc7e00148b3c74567da9525ef790f2 (diff) | |
download | nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.tar nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.tar.gz nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.tar.bz2 nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.tar.lz nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.tar.xz nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.tar.zst nixpkgs-247bdd7f70d94ef4ff51a098c57fa80c919efb9d.zip |
python3Packages.marisa-trie: add readme_renderer (#140323)
Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
Diffstat (limited to 'pkgs/development/python-modules/marisa-trie')
-rw-r--r-- | pkgs/development/python-modules/marisa-trie/default.nix | 38 |
1 files changed, 26 insertions, 12 deletions
diff --git a/pkgs/development/python-modules/marisa-trie/default.nix b/pkgs/development/python-modules/marisa-trie/default.nix index 4daa619acc4..02d98c86c84 100644 --- a/pkgs/development/python-modules/marisa-trie/default.nix +++ b/pkgs/development/python-modules/marisa-trie/default.nix @@ -2,9 +2,9 @@ , buildPythonPackage , fetchPypi , cython -, pytest-runner , pytestCheckHook , hypothesis +, readme_renderer }: buildPythonPackage rec { @@ -16,35 +16,49 @@ buildPythonPackage rec { sha256 = "bbeafb7d92839dc221365340e79d012cb50ee48a1f3f30dd916eb35a8b93db00"; }; + nativeBuildInputs = [ + cython + ]; + + checkInputs = [ + pytestCheckHook + readme_renderer + hypothesis + ]; + postPatch = '' substituteInPlace setup.py \ --replace "hypothesis==" "hypothesis>=" ''; - nativeBuildInputs = [ - cython - pytest-runner - ]; - preBuild = '' ./update_cpp.sh ''; - checkInputs = [ - pytestCheckHook - hypothesis + disabledTestPaths = [ + # Don't test packaging + "tests/test_packaging.py" ]; 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(...)`. + # 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" ]; + pythonImportsCheck = [ + "marisa_trie" + ]; + meta = with lib; { - description = "Static memory-efficient Trie-like structures for Python (2.x and 3.x) 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."; + 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. + ''; homepage = "https://github.com/kmike/marisa-trie"; license = licenses.mit; maintainers = with maintainers; [ ixxie ]; |