diff options
author | Matan Shenhav <matan@fluxcraft.net> | 2018-03-25 20:52:41 +0200 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-04-05 00:02:56 +0200 |
commit | 8cd264f53f17cef2245fd220a4c751370160aa39 (patch) | |
tree | bedddab8da407e3a0808679f2fda397fb8004149 /pkgs/development/python-modules/marisa-trie | |
parent | 3d93a9b1d2139efd74386754ca30a3972b7e5b2c (diff) | |
download | nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.tar nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.tar.gz nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.tar.bz2 nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.tar.lz nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.tar.xz nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.tar.zst nixpkgs-8cd264f53f17cef2245fd220a4c751370160aa39.zip |
pythonPackages.marisa-trie: init at 0.7.4
Diffstat (limited to 'pkgs/development/python-modules/marisa-trie')
-rw-r--r-- | pkgs/development/python-modules/marisa-trie/default.nix | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/marisa-trie/default.nix b/pkgs/development/python-modules/marisa-trie/default.nix new file mode 100644 index 00000000000..ad9f6d6f245 --- /dev/null +++ b/pkgs/development/python-modules/marisa-trie/default.nix @@ -0,0 +1,34 @@ +{ lib +, buildPythonPackage +, fetchPypi +, pytestrunner +, pytest +, hypothesis +}: + +buildPythonPackage rec { + pname = "marisa-trie"; + version = "0.7.4"; + + src = fetchPypi { + inherit pname version; + sha256 = "1n4pxnaranbh3x2fcqxwh8j1z2918vy7i4q1z4jn75m9rkm5h8ia"; + }; + + postPatch = '' + substituteInPlace setup.py \ + --replace "hypothesis==" "hypothesis>=" + ''; + + nativeBuildInputs = [ pytestrunner ]; + + checkInputs = [ pytest hypothesis ]; + + 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."; + homepage = https://github.com/kmike/marisa-trie; + license = licenses.mit; + maintainers = with maintainers; [ ixxie ]; + }; +} |