depot/third_party/nixpkgs/pkgs/development/python-modules/openvino/default.nix
Default email 587713944a Project import generated by Copybara.
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
2024-04-21 17:54:59 +02:00

39 lines
680 B
Nix

{ lib
, buildPythonPackage
, openvino-native
, numpy
, python
}:
buildPythonPackage {
pname = "openvino";
inherit (openvino-native) version;
format = "other";
src = openvino-native.python;
propagatedBuildInputs = [
numpy
];
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 ];
};
}