about summary refs log tree commit diff
diff options
context:
space:
mode:
authorArseniy Seroka <jagajaga@users.noreply.github.com>2015-05-09 15:44:56 +0300
committerArseniy Seroka <jagajaga@users.noreply.github.com>2015-05-09 15:44:56 +0300
commit23a95ffe6be2a471c53abf90c33c7dba5e85c6bc (patch)
tree71caceede54062235786ac28a6a4d5330d6bf5ec
parent5cdff62dd1937350368788405140b8cbd04cd028 (diff)
parentea9969b0e45dc494e80095f4c4c0a469ec032312 (diff)
downloadnixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.tar
nixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.tar.gz
nixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.tar.bz2
nixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.tar.lz
nixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.tar.xz
nixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.tar.zst
nixlib-23a95ffe6be2a471c53abf90c33c7dba5e85c6bc.zip
Merge pull request #7773 from k0ral/jellyfish
Added jellyfish python package
-rw-r--r--pkgs/top-level/python-packages.nix39
1 files changed, 39 insertions, 0 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix
index 73fa69b4cb02..3e8164ff9b8b 100644
--- a/pkgs/top-level/python-packages.nix
+++ b/pkgs/top-level/python-packages.nix
@@ -6188,6 +6188,24 @@ let
     };
   });
 
+  jellyfish = buildPythonPackage rec {
+    version = "0.5.0";
+    name = "jellyfish-${version}";
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/j/jellyfish/${name}.tar.gz";
+      sha256 = "04p80gwwlhxjp8zpjf70a62x69l9rlvnz1pwi5ar52gyajn8z6z1";
+    };
+
+    buildInputs = with self; [ pytest unicodecsv ];
+
+    meta = with stdenv.lib; {
+      homepage = http://github.com/sunlightlabs/jellyfish;
+      description = "Approximate and phonetic matching of strings";
+      maintainers = [ maintainers.koral ];
+    };
+  };
+
   jinja2 = buildPythonPackage rec {
     name = "Jinja2-2.7.3";
 
@@ -12670,6 +12688,27 @@ let
     };
   };
 
+  unicodecsv = buildPythonPackage rec {
+    version = "0.12.0";
+    name = "unicodecsv-${version}";
+    disabled = isPy3k;
+
+    src = pkgs.fetchurl {
+      url = "https://pypi.python.org/packages/source/u/unicodecsv/${name}.tar.gz";
+      sha256 = "012yvwza38bq84z9p8xzlxn7bkz0gf5y2nm5js7cyn766cy53dxh";
+    };
+
+    # ImportError: No module named runtests
+    #buildInputs = with self; [ unittest2 ];
+    doCheck = false;
+
+    meta = with stdenv.lib; {
+      description = "Drop-in replacement for Python2's stdlib csv module, with unicode support";
+      homepage = https://github.com/jdunck/python-unicodecsv;
+      maintainers = [ maintainers.koral ];
+    };
+  };
+
   unittest2 = buildPythonPackage rec {
     version = "0.5.1";
     name = "unittest2-${version}";