Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, fonttools
5, future
6, pytestCheckHook
7, pythonOlder
8}:
9
10buildPythonPackage rec {
11 pname = "arabic-reshaper";
12 version = "2.1.4";
13 format = "setuptools";
14
15 disabled = pythonOlder "3.7";
16
17 src = fetchFromGitHub {
18 owner = "mpcabd";
19 repo = "python-arabic-reshaper";
20 rev = "v${version}";
21 hash = "sha256-qQGIC/KequOQZoxwm7AEkdPV0QpS7YoBV9v8ZA7AYQM=";
22 };
23
24 propagatedBuildInputs = [
25 future
26 ];
27
28 passthru.optional-dependencies = {
29 with-fonttools = [
30 fonttools
31 ];
32 };
33
34 checkInputs = [
35 pytestCheckHook
36 ];
37
38 pythonImportsCheck = [
39 "arabic_reshaper"
40 ];
41
42 meta = with lib; {
43 description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
44 homepage = "https://github.com/mpcabd/python-arabic-reshaper";
45 license = with licenses; [ mit ];
46 maintainers = with maintainers; [ freezeboy ];
47 };
48}