1{ lib, buildPythonPackage, fetchPypi, future, configparser, isPy27 }: 2 3buildPythonPackage rec { 4 pname = "arabic_reshaper"; 5 version = "2.1.3"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "a236fc6e9dde2a61cc6a5ca962b522e42694e1bb2a2d86894ed7a4eba4ce1890"; 10 }; 11 12 propagatedBuildInputs = [ future ] 13 ++ lib.optionals isPy27 [ configparser ]; 14 15 # Tests are not published on pypi 16 doCheck = false; 17 18 pythonImportsCheck = [ "arabic_reshaper" ]; 19 20 meta = with lib; { 21 homepage = "https://github.com/mpcabd/python-arabic-reshaper"; 22 description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic"; 23 platforms = platforms.unix; 24 maintainers = with maintainers; [ freezeboy ]; 25 }; 26}