blob: fbb48e9bb1316018391d27e855a6f468f42e4253 (
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,
fetchFromGitHub,
buildPythonPackage,
cargo,
rustPlatform,
rustc,
}:
let
version = "0.2.6";
src = fetchFromGitHub {
owner = "yzx9";
repo = "sdflit";
tag = "v${version}";
hash = "sha256-Ze3J5Dp+TskhIiGP6kMK3AIHLnhVBuEaKJokccIr+SM=";
};
in
buildPythonPackage {
pname = "sdflit";
inherit version src;
pyproject = true;
cargoDeps = rustPlatform.fetchCargoVendor {
inherit src;
hash = "sha256-CrMe5DuO9sQZZ50Hy+av4nF4gbOe296zSWJfJ8th7zs=";
};
build-system = [
cargo
rustPlatform.cargoSetupHook
rustPlatform.maturinBuildHook
rustc
];
pythonImportsCheck = [
"sdflit"
];
meta = {
description = "Fast and Robust Signed Distance Function Library";
homepage = "https://github.com/yzx9/sdflit";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ yzx9 ];
};
}
|