Commit 711876c9 authored by Emily's avatar Emily
Browse files

python313Packages.embreex: drop

parent 5b43f122
Loading
Loading
Loading
Loading
+0 −72
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  fetchpatch,
  buildPythonPackage,
  embree2,
  cython,
  numpy,
  setuptools,
  pytestCheckHook,
}:

buildPythonPackage rec {
  pname = "embreex";
  version = "2.17.7.post6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "trimesh";
    repo = "embreex";
    tag = version;
    hash = "sha256-iLIfhngorSFOdkOvlCAJQXGQrVuRfBSDGzvjXOlQuHk=";
  };

  patches = [
    # https://github.com/trimesh/embreex/pull/7
    (fetchpatch {
      name = "fix-use-after-free.patch";
      url = "https://github.com/trimesh/embreex/commit/c6b047285419f8986fae962e2734a01522be7ef7.patch";
      hash = "sha256-s8x2vsqbsIR3aoNUDrYs2vQttuNY8lLJ6TC7H8FMRyQ=";
    })
  ];

  build-system = [
    setuptools
    numpy
    cython
  ];

  dependencies = [
    numpy
  ];

  buildInputs = [
    embree2
    embree2.tbb
  ];

  pythonImportsCheck = [
    "embreex"
    "embreex.mesh_construction"
    "embreex.rtcore"
    "embreex.rtcore_scene"
    "embreex.triangles"
  ];

  preCheck = ''
    # conflicts with $out
    rm -rf embreex/
  '';

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "Maintained PyEmbree fork, wrapper for Embree v2";
    homepage = "https://github.com/trimesh/embreex";
    changelog = "https://github.com/trimesh/embreex/releases/tag/${src.tag}";
    license = lib.licenses.bsd2;
    maintainers = with lib.maintainers; [ pbsds ];
    inherit (embree2.meta) platforms;
  };
}
+1 −4
Original line number Diff line number Diff line
@@ -24,7 +24,6 @@
  scipy,
  pillow,
  mapbox-earcut,
  embreex,
}:

buildPythonPackage rec {
@@ -63,9 +62,7 @@ buildPythonPackage rec {
      pillow
      # vhacdx # not packaged
      mapbox-earcut
    ]
    ++ lib.optionals embreex.meta.available [
      embreex
      # embreex # not packaged
    ];
  };

+1 −0
Original line number Diff line number Diff line
@@ -241,6 +241,7 @@ mapAliases ({
  eebrightbox = throw "eebrightbox is unmaintained upstream and has therefore been removed"; # added 2022-02-03
  EasyProcess = easyprocess; # added 2023-02-19
  email_validator = email-validator; # added 2022-06-22
  embreex = throw "embreex has been removed, as it required embree2"; # added 2025-09-14
  enhancements = throw "enhancements is unmaintained upstream and has therefore been removed"; # added 2023-10-27
  enum-compat = throw "enum-compat is a virtual package providing enum34, which does not do anything since Python 3.4"; # added 2025-02-15
  enum34 = throw "enum34 is no longer needed since Python 3.4"; # added 2025-03-06
+0 −2
Original line number Diff line number Diff line
@@ -4691,8 +4691,6 @@ self: super: with self; {
  embrace = callPackage ../development/python-modules/embrace { };
  embreex = callPackage ../development/python-modules/embreex { };
  emcee = callPackage ../development/python-modules/emcee { };
  emoji = callPackage ../development/python-modules/emoji { };