2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
fetchFromGitHub,
|
|
|
|
fonttools,
|
|
|
|
pytestCheckHook,
|
|
|
|
pythonOlder,
|
2022-12-28 21:21:41 +00:00
|
|
|
}:
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2022-12-28 21:21:41 +00:00
|
|
|
pname = "arabic-reshaper";
|
2023-01-20 10:41:00 +00:00
|
|
|
version = "3.0.0";
|
2022-12-28 21:21:41 +00:00
|
|
|
format = "setuptools";
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "mpcabd";
|
|
|
|
repo = "python-arabic-reshaper";
|
2023-01-20 10:41:00 +00:00
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
|
2020-11-21 19:51:51 +00:00
|
|
|
};
|
|
|
|
|
2024-10-04 16:56:33 +00:00
|
|
|
optional-dependencies = {
|
2024-06-05 15:53:02 +00:00
|
|
|
with-fonttools = [ fonttools ];
|
2022-12-28 21:21:41 +00:00
|
|
|
};
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
pythonImportsCheck = [ "arabic_reshaper" ];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
|
2022-12-28 21:21:41 +00:00
|
|
|
homepage = "https://github.com/mpcabd/python-arabic-reshaper";
|
2023-01-20 10:41:00 +00:00
|
|
|
changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v${version}";
|
2022-12-28 21:21:41 +00:00
|
|
|
license = with licenses; [ mit ];
|
2020-11-21 19:51:51 +00:00
|
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
|
|
};
|
|
|
|
}
|