35 lines
851 B
Nix
35 lines
851 B
Nix
{ lib
|
|
, stdenv
|
|
, python3Packages
|
|
, fetchurl
|
|
, autoPatchelfHook
|
|
, opencv
|
|
, libglvnd
|
|
}:
|
|
python3Packages.buildPythonPackage rec {
|
|
pname = "mediapipe";
|
|
version = "0.10.32";
|
|
format = "wheel";
|
|
src = fetchurl {
|
|
url = "https://files.pythonhosted.org/packages/e3/98/00cd8b2dcb563f2298655633e6611a791b2c1a7df1dae064b2b96084f1bf/mediapipe-0.10.32-py3-none-manylinux_2_28_x86_64.whl";
|
|
hash = "sha256-SwlB+7vOQYYvE8sYUMSHjBPbxizV6B50iABRt6IM47Y=";
|
|
};
|
|
nativeBuildInputs = [ autoPatchelfHook ];
|
|
buildInputs = [
|
|
stdenv.cc.cc.lib
|
|
opencv
|
|
libglvnd
|
|
];
|
|
propagatedBuildInputs = with python3Packages; [
|
|
numpy
|
|
absl-py
|
|
protobuf
|
|
opencv4
|
|
];
|
|
meta = with lib; {
|
|
description = "MediaPipe - Google's media processing framework";
|
|
homepage = "https://github.com/google/mediapipe";
|
|
license = licenses.asl20;
|
|
};
|
|
}
|