python3Packages.hwdata: fix build

This commit is contained in:
Weijia Wang
2026-09-03 14:23:36 +02:00
parent 5172f205ff
commit 244cd4948f

View File

@@ -20,8 +20,11 @@ buildPythonPackage rec {
nativeBuildInputs = [ setuptools ];
patchPhase = ''
substituteInPlace hwdata.py --replace "/usr/share/hwdata" "${pkgs.hwdata}/share/hwdata"
postPatch = ''
substituteInPlace setup.py \
--replace-fail "2.4.3" "2.4.3-1"
substituteInPlace hwdata.py \
--replace-fail "/usr/share/hwdata" "${pkgs.hwdata}/share/hwdata"
'';
pythonImportsCheck = [ "hwdata" ];