10 buildPythonPackage rec {
11 pname = "python-bidi";
15 src = fetchFromGitHub {
16 owner = "MeirKriheli";
19 hash = "sha256-LrXt9qaXfy8Rn9HjU4YSTFT4WsqzwCgh0flcxXOTF6E=";
22 cargoDeps = rustPlatform.fetchCargoTarball {
24 name = "${pname}-${version}";
25 hash = "sha256-34R8T8cXiX1iRx/Zb51Eb/nf0wLpN38hz0VnsmzPzws=";
28 buildInputs = [ libiconv ];
31 rustPlatform.cargoSetupHook
32 rustPlatform.maturinBuildHook
39 nativeCheckInputs = [ pytestCheckHook ];
42 homepage = "https://github.com/MeirKriheli/python-bidi";
43 description = "Pure python implementation of the BiDi layout algorithm";
44 mainProgram = "pybidi";
45 platforms = lib.platforms.unix;
46 maintainers = with lib.maintainers; [ freezeboy ];