38 lines
971 B
Nix
38 lines
971 B
Nix
{
|
|
lib,
|
|
fetchurl,
|
|
buildPythonPackage,
|
|
protobuf,
|
|
numpy,
|
|
opencv4,
|
|
attrs,
|
|
matplotlib,
|
|
autoPatchelfHook,
|
|
sounddevice,
|
|
absl-py,
|
|
jax,
|
|
}:
|
|
buildPythonPackage {
|
|
pname = "mediapipe";
|
|
version = "0.10.7";
|
|
format = "wheel";
|
|
|
|
src = fetchurl {
|
|
url = "https://files.pythonhosted.org/packages/45/29/f4b59a010a62178308b40a7eef565a848b0cf12873bb46fba35b11d693bd/mediapipe-0.10.7-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl";
|
|
sha256 = "sha256-DMHivQf1CFLR5bakDs3Y0QTVEMHttEf4xxli11/RCXI=";
|
|
};
|
|
|
|
propagatedBuildInputs = [sounddevice absl-py jax protobuf numpy opencv4 matplotlib attrs];
|
|
|
|
nativeBuildInputs = [autoPatchelfHook];
|
|
|
|
pythonImportsCheck = ["mediapipe"];
|
|
|
|
meta = with lib; {
|
|
description = "Cross-platform, customizable ML solutions for live and streaming media";
|
|
homepage = "https://github.com/google/mediapipe/releases/tag/v0.10.7";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [];
|
|
};
|
|
}
|