mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-27 09:23:01 +00:00
pythonPackages.marisa-trie: init at 0.7.4
This commit is contained in:
parent
3d93a9b1d2
commit
8cd264f53f
34
pkgs/development/python-modules/marisa-trie/default.nix
Normal file
34
pkgs/development/python-modules/marisa-trie/default.nix
Normal file
@ -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 ];
|
||||
};
|
||||
}
|
@ -9177,6 +9177,8 @@ in {
|
||||
marisa = pkgs.marisa;
|
||||
};
|
||||
|
||||
marisa-trie = callPackage ../development/python-modules/marisa-trie { };
|
||||
|
||||
markupsafe = buildPythonPackage rec {
|
||||
name = "markupsafe-${version}";
|
||||
version = "1.0";
|
||||
|
Loading…
Reference in New Issue
Block a user