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