2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
openvino-native,
|
|
|
|
numpy,
|
|
|
|
python,
|
2023-02-09 11:40:11 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage {
|
|
|
|
pname = "openvino";
|
|
|
|
inherit (openvino-native) version;
|
|
|
|
format = "other";
|
|
|
|
|
|
|
|
src = openvino-native.python;
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
propagatedBuildInputs = [ numpy ];
|
2023-02-09 11:40:11 +00:00
|
|
|
|
|
|
|
installPhase = ''
|
|
|
|
runHook preInstall
|
|
|
|
|
|
|
|
mkdir -p $out/${python.sitePackages}
|
|
|
|
cp -Rv * $out/${python.sitePackages}/
|
|
|
|
|
|
|
|
runHook postInstall
|
|
|
|
'';
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"openvino"
|
|
|
|
"openvino.runtime"
|
|
|
|
];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "OpenVINO(TM) Runtime";
|
|
|
|
homepage = "https://github.com/openvinotoolkit/openvino";
|
|
|
|
license = licenses.asl20;
|
|
|
|
maintainers = with maintainers; [ hexa ];
|
|
|
|
};
|
|
|
|
}
|