summary refs log tree commit diff
path: root/pkgs/development/python-modules/langcodes
diff options
context:
space:
mode:
authorMatan Shenhav <matan@fluxcraft.net>2018-03-25 20:33:53 +0200
committerRobert Schütz <robert.schuetz@stud.uni-heidelberg.de>2018-04-05 00:10:14 +0200
commitd59fafd896b897e83d145f549239ef203bf704bf (patch)
tree28b9ce54f0c8a234893f8a6e2de0a1be40d1d189 /pkgs/development/python-modules/langcodes
parent8cd264f53f17cef2245fd220a4c751370160aa39 (diff)
downloadnixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.tar
nixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.tar.gz
nixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.tar.bz2
nixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.tar.lz
nixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.tar.xz
nixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.tar.zst
nixpkgs-d59fafd896b897e83d145f549239ef203bf704bf.zip
pythonPackages.langcodes: init at 1.4.1
Diffstat (limited to 'pkgs/development/python-modules/langcodes')
-rw-r--r--pkgs/development/python-modules/langcodes/default.nix34
1 files changed, 34 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/langcodes/default.nix b/pkgs/development/python-modules/langcodes/default.nix
new file mode 100644
index 00000000000..d1d25f5407c
--- /dev/null
+++ b/pkgs/development/python-modules/langcodes/default.nix
@@ -0,0 +1,34 @@
+{ lib
+, buildPythonPackage
+, marisa-trie
+, pythonOlder
+, fetchPypi
+, nose
+}:
+
+buildPythonPackage rec {
+  pname = "langcodes";
+  version = "1.4.1";
+
+  src = fetchPypi {
+    inherit pname version;
+    sha256 = "1axdiva2qglsjmnx2ak7i6hm0yhp6kbc4lcsgn8ckwy0nq1z3kr2";
+  };
+
+  propagatedBuildInputs = [ marisa-trie ];
+
+  disabled = pythonOlder "3.3";
+
+  checkInputs = [ nose ];
+
+  checkPhase = ''
+    nosetests
+  '';
+
+  meta = with lib; {
+    description = "A toolkit for working with and comparing the standardized codes for languages, such as ‘en’ for English or ‘es’ for Spanish";
+    homepage =  http://github.com/LuminosoInsight/langcodes;
+    license = licenses.mit;
+    maintainers = with maintainers; [ ixxie ];
+  };
+}