1 { lib, fetchPypi, buildPythonPackage
2 , six, systemd, pytest, mock, hypothesis, docutils
5 buildPythonPackage rec {
10 inherit pname version;
11 sha256 = "0xmj6l08iih2js9skjqpv4w7y0dhxyg91zmrs6v5aa65gbmipfv9";
15 substituteInPlace src/pyudev/_ctypeslib/utils.py \
16 --replace "find_library(name)" "'${lib.getLib systemd}/lib/libudev.so'"
19 checkInputs = [ pytest mock hypothesis docutils ];
20 propagatedBuildInputs = [ six ];
26 # Bunch of failing tests
27 # https://github.com/pyudev/pyudev/issues/187
31 homepage = "https://pyudev.readthedocs.org/";
32 description = "Pure Python libudev binding";
33 license = lib.licenses.lgpl21Plus;