linuxPackages_latest.broadcom_sta: add patch to compile on Kernel 6.12 (#359484)
[NixPkgs.git] / pkgs / development / python-modules / manifold3d / default.nix
blobcb0468c6bff4a3c759634c93350f8dc8241c2693
2   lib,
3   buildPythonPackage,
4   python,
5   fetchFromGitHub,
6   scikit-build-core,
7   cmake,
8   ninja,
9   nanobind,
10   pkg-config,
11   numpy,
12   clipper2,
13   tbb,
14   pytestCheckHook,
15   trimesh,
18 buildPythonPackage rec {
19   pname = "manifold3d";
20   version = "3.0.0";
21   pyproject = true;
23   src = fetchFromGitHub {
24     owner = "elalish";
25     repo = "manifold";
26     rev = "refs/tags/v${version}";
27     hash = "sha256-02bZAPA4mnWzS9NYVcSW0JE7BidrwzNKBO2nl7BxiiE=";
28   };
30   dontUseCmakeConfigure = true;
32   build-system = [
33     scikit-build-core
34     cmake
35     ninja
36     nanobind
37     pkg-config
38   ];
40   dependencies = [
41     numpy
42   ];
44   buildInputs = [
45     tbb
46     clipper2
47   ];
49   nativeCheckInputs = [
50     pytestCheckHook
51     trimesh
52   ];
54   preCheck = ''
55     ${python.interpreter} bindings/python/examples/run_all.py
56   '';
58   pythonImportsCheck = [
59     "manifold3d"
60   ];
62   meta = {
63     description = "Geometry library for topological robustness";
64     homepage = "https://github.com/elalish/manifold";
65     changelog = "https://github.com/elalish/manifold/releases/tag/v${version}";
66     license = lib.licenses.asl20;
67     maintainers = with lib.maintainers; [ pbsds ];
68   };