diff options
author | Jörg Thalheim <Mic92@users.noreply.github.com> | 2017-03-09 14:51:09 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-03-09 14:51:09 +0100 |
commit | 3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65 (patch) | |
tree | f3c40cebd1c8f07d51cb987d2a6c76e47e16272c /pkgs | |
parent | 838051e9cd7a76b93cf94c10d8728c2faca23cdc (diff) | |
parent | 1fa6ecb48d8257dbe33ab688313aba3a66a20c6b (diff) | |
download | nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.tar nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.tar.gz nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.tar.bz2 nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.tar.lz nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.tar.xz nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.tar.zst nixlib-3c170e505cdb6fb732fe6b4db4e87a3a7e0cab65.zip |
Merge pull request #23659 from lheckemann/nltk
nltk: init at 3.2.2
Diffstat (limited to 'pkgs')
-rw-r--r-- | pkgs/development/python-modules/nltk.nix | 30 | ||||
-rw-r--r-- | pkgs/top-level/python-packages.nix | 2 |
2 files changed, 32 insertions, 0 deletions
diff --git a/pkgs/development/python-modules/nltk.nix b/pkgs/development/python-modules/nltk.nix new file mode 100644 index 000000000000..c436e40d2382 --- /dev/null +++ b/pkgs/development/python-modules/nltk.nix @@ -0,0 +1,30 @@ +{ fetchurl, buildPythonPackage, isPy33, lib, six, pythonAtLeast, pythonOlder }: + +buildPythonPackage rec { + name = "nltk-${version}"; + version = "3.2.2"; + + src = fetchurl { + url = "mirror://pypi/n/nltk/nltk-${version}.tar.gz"; + sha256 = "13m8i393h5mhpyvh5rghxxpax3bscv8li3ynwfdiq0kh8wsdndqv"; + }; + + propagatedBuildInputs = [ six ]; + + disabled = pythonOlder "2.7" || pythonOlder "3.4" && (pythonAtLeast "3.0"); + + # Tests require some data, the downloading of which is impure. It would + # probably make sense to make the data another derivation, but then feeding + # that into the tests (given that we need nltk itself to download the data, + # unless there's an easy way to download it without nltk's downloader) might + # be complicated. For now let's just disable the tests and hope for the + # best. + doCheck = false; + + meta = { + description = "Natural Language Processing ToolKit"; + homepage = http://nltk.org/; + license = lib.licenses.asl20; + maintainers = with lib.maintainers; [ lheckemann ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index d71380f2c612..70ed8297ff1f 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -283,6 +283,8 @@ in { # version of nixpart. nixpart0 = callPackage ../tools/filesystems/nixpart/0.4 { }; + nltk = callPackage ../development/python-modules/nltk.nix { }; + pitz = callPackage ../applications/misc/pitz { }; plantuml = callPackage ../tools/misc/plantuml { }; |