summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/arabic-reshaper/default.nix
blob: cde49f801ec0d226915c0bbc5d06938d283f30e8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  fonttools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "arabic-reshaper";
  version = "3.0.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "mpcabd";
    repo = "python-arabic-reshaper";
    tag = "v${version}";
    hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
  };

  optional-dependencies = {
    with-fonttools = [ fonttools ];
  };

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "arabic_reshaper" ];

  meta = {
    description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
    homepage = "https://github.com/mpcabd/python-arabic-reshaper";
    changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v${version}";
    license = with lib.licenses; [ mit ];
    maintainers = [ ];
  };
}