Files
nixpkgs/pkgs/development/python-modules/arabic-reshaper/default.nix
T
Fabian Affolter 07b3154972 python39Packages.arabic-reshaper: disable on older Python releases
- add license
- run tests
- update pname
2022-12-25 12:10:35 +01:00

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