at 18.09-beta 1.0 kB view raw
1{ fetchurl, buildPythonPackage, lib, six, pythonAtLeast, pythonOlder }: 2 3buildPythonPackage rec { 4 version = "3.2.5"; 5 pname = "nltk"; 6 7 src = fetchurl { 8 url = "mirror://pypi/n/nltk/nltk-${version}.tar.gz"; 9 sha256 = "2661f9971d983db314bbebd51ba770811a362c6597fd0f303bb1d3beadcb4834"; 10 }; 11 12 propagatedBuildInputs = [ six ]; 13 14 disabled = pythonOlder "2.7" || pythonOlder "3.4" && (pythonAtLeast "3.0"); 15 16 # Tests require some data, the downloading of which is impure. It would 17 # probably make sense to make the data another derivation, but then feeding 18 # that into the tests (given that we need nltk itself to download the data, 19 # unless there's an easy way to download it without nltk's downloader) might 20 # be complicated. For now let's just disable the tests and hope for the 21 # best. 22 doCheck = false; 23 24 meta = { 25 description = "Natural Language Processing ToolKit"; 26 homepage = http://nltk.org/; 27 license = lib.licenses.asl20; 28 maintainers = with lib.maintainers; [ lheckemann ]; 29 }; 30}