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