about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/marisa/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/marisa/default.nix')
-rw-r--r--nixpkgs/pkgs/development/python-modules/marisa/default.nix29
1 files changed, 29 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/marisa/default.nix b/nixpkgs/pkgs/development/python-modules/marisa/default.nix
new file mode 100644
index 000000000000..006e3a9051be
--- /dev/null
+++ b/nixpkgs/pkgs/development/python-modules/marisa/default.nix
@@ -0,0 +1,29 @@
+{ stdenv, buildPythonPackage, fetchFromGitHub, marisa, swig
+, isPy3k
+}:
+
+buildPythonPackage rec {
+  pname = "marisa";
+  version = "1.3.40";
+
+  disabled = isPy3k;
+
+  src = fetchFromGitHub {
+    owner = "s-yata";
+    repo  = "marisa-trie";
+    rev   = "8dba9850b89d7828ebf33b8ab84df2b54d31260b";
+    sha256 = "0pkp9fggk53lxlicfwrskgx33qplc4v6njbavlnz4x4z63zd4933";
+  };
+
+  nativeBuildInputs = [ swig marisa ];
+  buildInputs = [ marisa ];
+
+  sourceRoot = "${src.name}/bindings/python";
+
+  meta = with stdenv.lib; {
+    description = "Python binding for marisa package (do not confuse with marisa-trie python bindings)";
+    homepage    = https://github.com/s-yata/marisa-trie;
+    license     = with licenses; [ bsd2 lgpl2 ];
+    maintainers = with maintainers; [ vanzef ];
+  };
+}