mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-23 06:03:40 +00:00
85757c2d1b
Update and fix the python bindings. https://github.com/openvinotoolkit/openvino/releases/tag/2021.3 https://github.com/openvinotoolkit/openvino/releases/tag/2020.3.2 https://github.com/openvinotoolkit/openvino/releases/tag/2021.4 https://github.com/openvinotoolkit/openvino/releases/tag/2021.4.2 https://github.com/openvinotoolkit/openvino/releases/tag/2021.4.2 https://github.com/openvinotoolkit/openvino/releases/tag/2022.1.0 https://github.com/openvinotoolkit/openvino/releases/tag/2022.1.1 https://github.com/openvinotoolkit/openvino/releases/tag/2022.2.0 https://github.com/openvinotoolkit/openvino/releases/tag/2022.3.0
41 lines
693 B
Nix
41 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 ];
|
|
};
|
|
}
|