python3Packages.openvino: use packaging dep, fix installPhase
Co-authored-by: Simonas Kazlauskas <git@kazlauskas.me>
This commit is contained in:
co-authored by
Simonas Kazlauskas
parent
15b29960b8
commit
2ae8618b98
@@ -3,7 +3,7 @@
|
||||
buildPythonPackage,
|
||||
openvino-native,
|
||||
numpy,
|
||||
python,
|
||||
packaging,
|
||||
}:
|
||||
|
||||
buildPythonPackage {
|
||||
@@ -13,13 +13,16 @@ buildPythonPackage {
|
||||
|
||||
src = openvino-native.python;
|
||||
|
||||
propagatedBuildInputs = [ numpy ];
|
||||
dependencies = [
|
||||
numpy
|
||||
packaging
|
||||
];
|
||||
|
||||
installPhase = ''
|
||||
runHook preInstall
|
||||
|
||||
mkdir -p $out/${python.sitePackages}
|
||||
cp -Rv * $out/${python.sitePackages}/
|
||||
mkdir -p $out
|
||||
cp -Rv * $out/
|
||||
|
||||
runHook postInstall
|
||||
'';
|
||||
|
||||
Reference in New Issue
Block a user