mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 23:03:40 +01:00
nltk: init at 3.2.2
This commit is contained in:
parent
4ae5f4d3cc
commit
1fa6ecb48d
2 changed files with 32 additions and 0 deletions
30
pkgs/development/python-modules/nltk.nix
Normal file
30
pkgs/development/python-modules/nltk.nix
Normal file
|
@ -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 ];
|
||||
};
|
||||
}
|
|
@ -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 { };
|
||||
|
|
Loading…
Reference in a new issue