depot/third_party/nixpkgs/pkgs/development/python-modules/openvino/default.nix
Default email 4bac34ead1 Project import generated by Copybara.
GitOrigin-RevId: 724bfc0892363087709bd3a5a1666296759154b1
2023-02-09 12:40:11 +01:00

40 lines
693 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 = [
"ngraph"
"openvino"
"openvino.runtime"
];
meta = with lib; {
description = "OpenVINO(TM) Runtime";
homepage = "https://github.com/openvinotoolkit/openvino";
license = licenses.asl20;
maintainers = with maintainers; [ hexa ];
};
}