python310Packages.libretranslate: use python.sitePackages to be interpreter independent

This commit is contained in:
Sandro Jäckel 2023-07-12 14:04:51 +02:00
parent 8e284221f4
commit ff0b33ddf3
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -21,6 +21,7 @@
, redis
, prometheus-client
, polib
, python
}:
buildPythonPackage rec {
@ -69,7 +70,7 @@ buildPythonPackage rec {
postInstall = ''
# expose static files to be able to serve them via web-server
mkdir -p $out/share/libretranslate
ln -s $out/lib/python*/site-packages/libretranslate/static $out/share/libretranslate/static
ln -s $out/${python.sitePackages}/libretranslate/static $out/share/libretranslate/static
'';
doCheck = false; # needs network access