Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at release-18.03 46 lines 1.1 kB view raw
1{ stdenv 2, buildPythonPackage 3, fetchPypi 4, html5lib 5, wcwidth 6, nose 7, python 8, isPy3k 9}: 10 11buildPythonPackage rec { 12 pname = "ftfy"; 13 14 version = "4.4.3"; 15 # ftfy v5 only supports python3. Since at the moment the only 16 # packages that use ftfy are spacy and textacy which both support 17 # python 2 and 3, they have pinned ftfy to the v4 branch. 18 # I propose to stick to v4 until another package requires v5. 19 # At that point we can make a ftfy_v4 package. 20 21 src = fetchPypi { 22 inherit pname version; 23 sha256 = "152xdb56rhs1q4r0ck1n557sbphw7zq18r75a7kkd159ckdnc01w"; 24 }; 25 26 propagatedBuildInputs = [ html5lib wcwidth ]; 27 28 checkInputs = [ 29 nose 30 ]; 31 32 checkPhase = '' 33 nosetests -v tests 34 ''; 35 36 # Several tests fail with 37 # FileNotFoundError: [Errno 2] No such file or directory: 'ftfy' 38 doCheck = false; 39 40 meta = with stdenv.lib; { 41 description = "Given Unicode text, make its representation consistent and possibly less broken."; 42 homepage = https://github.com/LuminosoInsight/python-ftfy/tree/master/tests; 43 license = licenses.mit; 44 maintainers = with maintainers; [ sdll aborsu ]; 45 }; 46}