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