Unverified Commit d9f2cb4a authored by Sandro Jäckel's avatar Sandro Jäckel Committed by GitHub
Browse files

python312Packages.mmengine: 0.10.5 -> 0.10.6 (#373421)

parents 11ae9364 0b60aea1
Loading
Loading
Loading
Loading
+18 −10
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,

@@ -120,7 +121,8 @@ buildPythonPackage rec {
  # test_cnn test_ops really requires gpus to be useful.
  # some of the tests take exceedingly long time.
  # the rest of the tests are disabled due to sandbox env.
  disabledTests = [
  disabledTests =
    [
      "test_cnn"
      "test_ops"
      "test_fileclient"
@@ -129,6 +131,12 @@ buildPythonPackage rec {
      "test_checkpoint"
      "test_hub"
      "test_reader"
    ]
    ++ lib.optionals (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64) [
      # flaky numerical tests (AssertionError)
      "test_ycbcr2rgb"
      "test_ycbcr2bgr"
      "test_tensor2imgs"
    ];

  meta = {
+2 −21
Original line number Diff line number Diff line
{
  lib,
  stdenv,
  buildPythonPackage,
  fetchFromGitHub,
  fetchpatch2,

  # build-system
  setuptools,
@@ -32,31 +30,16 @@

buildPythonPackage rec {
  pname = "mmengine";
  version = "0.10.5";
  version = "0.10.6";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "open-mmlab";
    repo = "mmengine";
    tag = "v${version}";
    hash = "sha256-bZ6O4UOYUCwq11YmgRWepOIngYxYD/fNfM/VmcyUv9k=";
    hash = "sha256-J9p+JCtNoBlBvvv4p57/DHUIifYs/jdo+pK+paD+iXI=";
  };

  patches = [
    (fetchpatch2 {
      name = "mmengine-torch-2.5-compat.patch";
      url = "https://github.com/open-mmlab/mmengine/commit/4c22f78cdea2981a2b48a167e9feffe4721f8901.patch";
      hash = "sha256-k+IFLeqTEVUGGiqmZg56LK64H/UTvpGN20GJT59wf4A=";
    })
    (fetchpatch2 {
      # Bug reported upstream in https://github.com/open-mmlab/mmengine/issues/1575
      # PR: https://github.com/open-mmlab/mmengine/pull/1589
      name = "adapt-to-pytest-breaking-change";
      url = "https://patch-diff.githubusercontent.com/raw/open-mmlab/mmengine/pull/1589.patch";
      hash = "sha256-lyKf1GCLOPMpDttJ4s9hbATIGCVkiQhtyLfH9WzMWrw=";
    })
  ];

  build-system = [ setuptools ];

  dependencies = [
@@ -131,7 +114,5 @@ buildPythonPackage rec {
    changelog = "https://github.com/open-mmlab/mmengine/releases/tag/v${version}";
    license = with lib.licenses; [ asl20 ];
    maintainers = with lib.maintainers; [ rxiao ];
    broken =
      stdenv.hostPlatform.isDarwin || (stdenv.hostPlatform.isLinux && stdenv.hostPlatform.isAarch64);
  };
}