spicedb: 1.39.1 -> 1.40.0
[NixPkgs.git] / pkgs / development / python-modules / python-bidi / default.nix
blob6dca1f8028855fad23f13ca1a52051bc0d37f700
2   lib,
3   buildPythonPackage,
4   fetchFromGitHub,
5   rustPlatform,
6   libiconv,
7   pytestCheckHook,
8 }:
10 buildPythonPackage rec {
11   pname = "python-bidi";
12   version = "0.6.0";
13   pyproject = true;
15   src = fetchFromGitHub {
16     owner = "MeirKriheli";
17     repo = "python-bidi";
18     tag = "v${version}";
19     hash = "sha256-LrXt9qaXfy8Rn9HjU4YSTFT4WsqzwCgh0flcxXOTF6E=";
20   };
22   cargoDeps = rustPlatform.fetchCargoTarball {
23     inherit src;
24     name = "${pname}-${version}";
25     hash = "sha256-34R8T8cXiX1iRx/Zb51Eb/nf0wLpN38hz0VnsmzPzws=";
26   };
28   buildInputs = [ libiconv ];
30   build-system = [
31     rustPlatform.cargoSetupHook
32     rustPlatform.maturinBuildHook
33   ];
35   preCheck = ''
36     rm -rf bidi
37   '';
39   nativeCheckInputs = [ pytestCheckHook ];
41   meta = {
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 ];
47   };