blob: e163bc58c9a258c715914d17dc4bd51df7335437 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
rustPlatform,
libiconv,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "python-bidi";
version = "0.6.7";
pyproject = true;
src = fetchFromGitHub {
owner = "MeirKriheli";
repo = "python-bidi";
tag = "v${version}";
hash = "sha256-8LNoQwUOa2pKEviBq24IHihUfhyMoA/IV+sBuFUhHdc=";
};
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-27DtYoxd0bPS4A/7HBmuLYCZrG5yu0Tp8jXIBPSrAdc=";
};
buildInputs = [ libiconv ];
build-system = [
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
];
preCheck = ''
rm -rf bidi
'';
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://github.com/MeirKriheli/python-bidi";
description = "Pure python implementation of the BiDi layout algorithm";
mainProgram = "pybidi";
platforms = lib.platforms.unix;
maintainers = [ ];
};
}
|