Unverified Commit f634aff9 authored by Robert Schütz's avatar Robert Schütz Committed by GitHub
Browse files

python312Packages.opencv-python: init at 4.9.0 (#353249)

parents 819a66c5 1be0b8ce
Loading
Loading
Loading
Loading
+2 −7
Original line number Diff line number Diff line
@@ -5,7 +5,7 @@
, lxml
, matplotlib
, numpy
, opencv4
, opencv-python
, pymavlink
, pyserial
, setuptools
@@ -25,16 +25,11 @@ buildPythonApplication rec {
    hash = "sha256-A7tqV1kBCSuWHJUTdUZGcPY/r7X1edGZs6xDctpMbMI=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "opencv-python" ""
  '';

  propagatedBuildInputs = [
    lxml
    matplotlib
    numpy
    opencv4
    opencv-python
    pymavlink
    pyserial
    setuptools
+1 −6
Original line number Diff line number Diff line
@@ -29,7 +29,7 @@ python3.pkgs.buildPythonApplication rec {
    numpy
    onnx
    onnxruntime # Nixpkgs onnxruntime is missing CUDA support
    opencv4
    opencv-python
    scikit-image
    tqdm
  ];
@@ -39,11 +39,6 @@ python3.pkgs.buildPythonApplication rec {
    ''--prefix LD_LIBRARY_PATH : "${lib.makeLibraryPath [ pkgs.onnxruntime ]}"''
  ];

  postPatch = ''
    substituteInPlace pyproject.toml \
      --replace-fail "opencv-python" "opencv"
  '';

  pythonImportsCheck = [ "deface" "onnx" "onnxruntime" ];

  meta = {
+1 −7
Original line number Diff line number Diff line
@@ -17,12 +17,6 @@ python3Packages.buildPythonApplication rec {
    fetchSubmodules = true;
  };

  postPatch = ''
    substituteInPlace pyproject.toml \
        --replace-fail 'opencv-python' 'opencv'
  '';


  pythonRelaxDeps = [ "torchvision" ];

  build-system = with python3Packages; [ setuptools-scm ];
@@ -33,7 +27,7 @@ python3Packages.buildPythonApplication rec {
    manga-ocr
    natsort
    numpy
    opencv4
    opencv-python
    pillow
    pyclipper
    requests
+3 −3
Original line number Diff line number Diff line
@@ -6,7 +6,7 @@
  setuptools,
  pytestCheckHook,
  numpy,
  opencv4,
  opencv-python,
  stringzilla,
}:

@@ -24,13 +24,13 @@ buildPythonPackage rec {
    hash = "sha256-GwT7Py7pKbpHxx4avj37/hRjSJXdH5uBU11nCITysVw=";
  };

  pythonRemoveDeps = [ "opencv-python" ];
  pythonRelaxDeps = [ "opencv-python" ];

  build-system = [ setuptools ];

  dependencies = [
    numpy
    opencv4
    opencv-python
    stringzilla
  ];

+3 −3
Original line number Diff line number Diff line
@@ -11,7 +11,7 @@
  albucore,
  eval-type-backport,
  numpy,
  opencv4,
  opencv-python,
  pydantic,
  pyyaml,
  scikit-image,
@@ -47,7 +47,7 @@ buildPythonPackage rec {
    ./dont-check-for-updates.patch
  ];

  pythonRemoveDeps = [ "opencv-python" ];
  pythonRelaxDeps = [ "opencv-python" ];

  build-system = [ setuptools ];

@@ -55,7 +55,7 @@ buildPythonPackage rec {
    albucore
    eval-type-backport
    numpy
    opencv4
    opencv-python
    pydantic
    pyyaml
    scikit-image
Loading