2022-12-28 21:21:41 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, fonttools
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
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
|
|
|
};
|
|
|
|
|
2022-12-28 21:21:41 +00:00
|
|
|
passthru.optional-dependencies = {
|
|
|
|
with-fonttools = [
|
|
|
|
fonttools
|
|
|
|
];
|
|
|
|
};
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2022-12-28 21:21:41 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
2020-11-21 19:51:51 +00:00
|
|
|
|
2022-12-28 21:21:41 +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 ];
|
|
|
|
};
|
|
|
|
}
|