python310Packages.numba: fix __version__

This commit is contained in:
natsukium
2023-08-17 00:06:15 +09:00
parent 8639573ee8
commit afea267ad7
@@ -83,7 +83,7 @@ in buildPythonPackage rec {
postPatch = ''
substituteInPlace setup.py --replace "version=versioneer.get_version()" "version='0.57.1'"
substituteInPlace numba/_version.py \
--replace 'git_refnames = ""' 'git_refnames = "0.57.1"'
--replace 'git_refnames = " (HEAD -> main)"' 'git_refnames = "tag: 0.57.1"'
'';
postFixup = lib.optionalString cudaSupport ''