1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fonttools
5, pytestCheckHook
6, pythonOlder
7}:
8
9buildPythonPackage rec {
10 pname = "arabic-reshaper";
11 version = "3.0.0";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "mpcabd";
18 repo = "python-arabic-reshaper";
19 rev = "refs/tags/v${version}";
20 hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
21 };
22
23 passthru.optional-dependencies = {
24 with-fonttools = [
25 fonttools
26 ];
27 };
28
29 nativeCheckInputs = [
30 pytestCheckHook
31 ];
32
33 pythonImportsCheck = [
34 "arabic_reshaper"
35 ];
36
37 meta = with lib; {
38 description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
39 homepage = "https://github.com/mpcabd/python-arabic-reshaper";
40 changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v${version}";
41 license = with licenses; [ mit ];
42 maintainers = with maintainers; [ freezeboy ];
43 };
44}