diff options
author | Matan Shenhav <matan@fluxcraft.net> | 2018-03-25 20:33:53 +0200 |
---|---|---|
committer | Robert Schütz <robert.schuetz@stud.uni-heidelberg.de> | 2018-04-05 00:10:14 +0200 |
commit | d59fafd896b897e83d145f549239ef203bf704bf (patch) | |
tree | 28b9ce54f0c8a234893f8a6e2de0a1be40d1d189 | |
parent | 8cd264f53f17cef2245fd220a4c751370160aa39 (diff) | |
download | nixlib-d59fafd896b897e83d145f549239ef203bf704bf.tar nixlib-d59fafd896b897e83d145f549239ef203bf704bf.tar.gz nixlib-d59fafd896b897e83d145f549239ef203bf704bf.tar.bz2 nixlib-d59fafd896b897e83d145f549239ef203bf704bf.tar.lz nixlib-d59fafd896b897e83d145f549239ef203bf704bf.tar.xz nixlib-d59fafd896b897e83d145f549239ef203bf704bf.tar.zst nixlib-d59fafd896b897e83d145f549239ef203bf704bf.zip |
pythonPackages.langcodes: init at 1.4.1
-rw-r--r-- | pkgs/development/python-modules/langcodes/default.nix | 34 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 36 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 000000000000..d1d25f5407c2 --- /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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 1676f8bc56fa..1872f1e3bf5a 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -10733,6 +10733,8 @@ in { }; }; + langcodes = callPackage ../development/python-modules/langcodes { }; + livestreamer = buildPythonPackage rec { version = "1.12.2"; name = "livestreamer-${version}"; |