at 24.05-pre 815 B view raw
1{ lib 2, buildPythonPackage 3, isPy3k 4, fetchPypi 5, wcwidth 6, pytestCheckHook 7}: 8 9buildPythonPackage rec { 10 pname = "ftfy"; 11 version = "6.1.1"; 12 13 disabled = !isPy3k; 14 15 src = fetchPypi { 16 inherit pname version; 17 hash = "sha256-v8IBn4T82FFBkVIyCmN1YEoPFFnCgbWxmbLNDS5yf48="; 18 }; 19 20 propagatedBuildInputs = [ 21 wcwidth 22 ]; 23 24 nativeCheckInputs = [ 25 pytestCheckHook 26 ]; 27 28 preCheck = '' 29 export PATH=$out/bin:$PATH 30 ''; 31 32 disabledTestPaths = [ 33 # Calls poetry and fails to match output exactly 34 "tests/test_cli.py" 35 ]; 36 37 38 meta = with lib; { 39 description = "Given Unicode text, make its representation consistent and possibly less broken"; 40 homepage = "https://github.com/LuminosoInsight/python-ftfy"; 41 license = licenses.mit; 42 maintainers = with maintainers; [ aborsu ]; 43 }; 44}