Merge pull request #161012 from a-m-joseph/pyudev-honor-systemdSupport

pyudev: depend on udev instead of systemd
This commit is contained in:
Jan Tojnar 2022-03-24 10:35:17 +01:00 committed by GitHub
commit 7ba956b497
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
{ lib, fetchPypi, buildPythonPackage
, six, systemd, pytest, mock, hypothesis, docutils
, six, udev, pytest, mock, hypothesis, docutils
}:
buildPythonPackage rec {
@ -13,7 +13,7 @@ buildPythonPackage rec {
postPatch = ''
substituteInPlace src/pyudev/_ctypeslib/utils.py \
--replace "find_library(name)" "'${lib.getLib systemd}/lib/libudev.so'"
--replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'"
'';
checkInputs = [ pytest mock hypothesis docutils ];

View File

@ -8383,7 +8383,7 @@ in {
};
pyudev = callPackage ../development/python-modules/pyudev {
inherit (pkgs) systemd;
inherit (pkgs) udev;
};
pyunbound = callPackage ../tools/networking/unbound/python.nix { };