Commit 42c1fe79 authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python311Packages.mmengine: format with nixfmt

parent b3e11c88
Loading
Loading
Loading
Loading
+32 −34
Original line number Diff line number Diff line
{ lib
, addict
, buildPythonPackage
, coverage
, fetchFromGitHub
, lmdb
, matplotlib
, mlflow
, numpy
, opencv4
, parameterized
, pytestCheckHook
, pythonOlder
, pyyaml
, rich
, setuptools
, termcolor
, torch
, yapf
{
  lib,
  addict,
  buildPythonPackage,
  coverage,
  fetchFromGitHub,
  lmdb,
  matplotlib,
  mlflow,
  numpy,
  opencv4,
  parameterized,
  pytestCheckHook,
  pythonOlder,
  pyyaml,
  rich,
  setuptools,
  termcolor,
  torch,
  yapf,
}:

buildPythonPackage rec {
@@ -33,9 +34,7 @@ buildPythonPackage rec {
    hash = "sha256-fKtPDdeKB3vX2mD+Tsicq8KOkPDSACzKK1XLyugdPQ4=";
  };

  build-system = [
    setuptools
  ];
  build-system = [ setuptools ];

  dependencies = [
    addict
@@ -57,7 +56,8 @@ buildPythonPackage rec {
    torch
  ];

  preCheck = ''
  preCheck =
    ''
      export HOME=$TMPDIR
    ''
    # Otherwise, the backprop hangs forever. More precisely, this exact line:
@@ -67,9 +67,7 @@ buildPythonPackage rec {
      export MKL_NUM_THREADS=1
    '';

  pythonImportsCheck = [
    "mmengine"
  ];
  pythonImportsCheck = [ "mmengine" ];

  disabledTestPaths = [
    # AttributeError