mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-17 12:50:04 +00:00
python3Packages.hwdata: fix build
This commit is contained in:
@@ -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" ];
|
||||
|
||||
Reference in New Issue
Block a user