Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 1.1 kB view raw
1{ fetchPypi, buildPythonPackage, lib, six, singledispatch, isPy3k 2, click 3, joblib 4, regex 5, tqdm 6}: 7 8buildPythonPackage rec { 9 version = "3.5"; 10 pname = "nltk"; 11 12 src = fetchPypi { 13 inherit pname version; 14 extension = "zip"; 15 sha256 = "845365449cd8c5f9731f7cb9f8bd6fd0767553b9d53af9eb1b3abf7700936b35"; 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}