13 buildPythonPackage rec {
18 inherit pname version;
19 hash = "sha256-deVNNyGPWsRbDaHw/ZzF5SajysPvHPrUEM96sziwFHE=";
22 postPatch = lib.optionalString stdenvNoCC.isLinux ''
23 substituteInPlace src/pyudev/_ctypeslib/utils.py \
24 --replace "find_library(name)" "'${lib.getLib udev}/lib/libudev.so'"
27 nativeCheckInputs = [ pytest mock hypothesis docutils ];
28 propagatedBuildInputs = [ six ];
34 # Bunch of failing tests
35 # https://github.com/pyudev/pyudev/issues/187
39 homepage = "https://pyudev.readthedocs.org/";
40 description = "Pure Python libudev binding";
41 license = licenses.lgpl21Plus;
42 maintainers = with maintainers; [ frogamic ];