a3d4720129
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
48 lines
936 B
Nix
48 lines
936 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, fonttools
|
|
, future
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "arabic-reshaper";
|
|
version = "2.1.4";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "mpcabd";
|
|
repo = "python-arabic-reshaper";
|
|
rev = "v${version}";
|
|
hash = "sha256-qQGIC/KequOQZoxwm7AEkdPV0QpS7YoBV9v8ZA7AYQM=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
future
|
|
];
|
|
|
|
passthru.optional-dependencies = {
|
|
with-fonttools = [
|
|
fonttools
|
|
];
|
|
};
|
|
|
|
checkInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"arabic_reshaper"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Reconstruct Arabic sentences to be used in applications that don't support Arabic";
|
|
homepage = "https://github.com/mpcabd/python-arabic-reshaper";
|
|
license = with licenses; [ mit ];
|
|
maintainers = with maintainers; [ freezeboy ];
|
|
};
|
|
}
|