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