Merge pull request #268619 from tweag/lib-descriptions
[NixPkgs.git] / pkgs / development / python-modules / arabic-reshaper / default.nix
blobf9c82cd0a6997f1a54368392f026416eda7742e6
1 { lib
2 , buildPythonPackage
3 , fetchFromGitHub
4 , fonttools
5 , pytestCheckHook
6 , pythonOlder
7 }:
9 buildPythonPackage rec {
10   pname = "arabic-reshaper";
11   version = "3.0.0";
12   format = "setuptools";
14   disabled = pythonOlder "3.7";
16   src = fetchFromGitHub {
17     owner = "mpcabd";
18     repo = "python-arabic-reshaper";
19     rev = "refs/tags/v${version}";
20     hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
21   };
23   passthru.optional-dependencies = {
24     with-fonttools = [
25       fonttools
26     ];
27   };
29   nativeCheckInputs = [
30     pytestCheckHook
31   ];
33   pythonImportsCheck = [
34     "arabic_reshaper"
35   ];
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   };