at 22.05-pre 1.1 kB view raw
1{ fetchPypi, buildPythonPackage, lib, singledispatch ? null, isPy3k 2, click 3, joblib 4, regex 5, tqdm 6}: 7 8buildPythonPackage rec { 9 version = "3.6.5"; 10 pname = "nltk"; 11 12 src = fetchPypi { 13 inherit pname version; 14 extension = "zip"; 15 sha256 = "834d1a8e38496369390be699be9bca4f2a0f2175b50327272b2ec7a98ffda2a0"; 16 }; 17 18 propagatedBuildInputs = [ 19 click 20 joblib 21 regex 22 tqdm 23 ] ++ lib.optional (!isPy3k) singledispatch; 24 25 # Tests require some data, the downloading of which is impure. It would 26 # probably make sense to make the data another derivation, but then feeding 27 # that into the tests (given that we need nltk itself to download the data, 28 # unless there's an easy way to download it without nltk's downloader) might 29 # be complicated. For now let's just disable the tests and hope for the 30 # best. 31 doCheck = false; 32 33 meta = { 34 description = "Natural Language Processing ToolKit"; 35 homepage = "http://nltk.org/"; 36 license = lib.licenses.asl20; 37 maintainers = with lib.maintainers; [ lheckemann ]; 38 }; 39}