mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-22 03:53:47 +00:00
Merge pull request #161012 from a-m-joseph/pyudev-honor-systemdSupport
pyudev: depend on udev instead of systemd
This commit is contained in:
commit
7ba956b497
@ -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 ];
|
||||
|
@ -8383,7 +8383,7 @@ in {
|
||||
};
|
||||
|
||||
pyudev = callPackage ../development/python-modules/pyudev {
|
||||
inherit (pkgs) systemd;
|
||||
inherit (pkgs) udev;
|
||||
};
|
||||
|
||||
pyunbound = callPackage ../tools/networking/unbound/python.nix { };
|
||||
|
Loading…
Reference in New Issue
Block a user