depot/third_party/nixpkgs/pkgs/development/python-modules/arabic-reshaper/default.nix
Default email 472aeafc57 Project import generated by Copybara.
GitOrigin-RevId: c31898adf5a8ed202ce5bea9f347b1c6871f32d1
2024-10-04 18:56:33 +02:00

39 lines
968 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fonttools,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "arabic-reshaper";
version = "3.0.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "mpcabd";
repo = "python-arabic-reshaper";
rev = "refs/tags/v${version}";
hash = "sha256-ucSC5aTvpnlAVQcT0afVecnoN3hIZKtzUhEQ6Qg0jQM=";
};
optional-dependencies = {
with-fonttools = [ fonttools ];
};
nativeCheckInputs = [ 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";
changelog = "https://github.com/mpcabd/python-arabic-reshaper/releases/tag/v${version}";
license = with licenses; [ mit ];
maintainers = with maintainers; [ freezeboy ];
};
}