depot/third_party/nixpkgs/pkgs/development/python-modules/arabic-reshaper/default.nix
Default email a3d4720129 Project import generated by Copybara.
GitOrigin-RevId: e182da8622a354d44c39b3d7a542dc12cd7baa5f
2022-12-28 22:21:41 +01:00

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 ];
};
}