python-packages: Add pyudev in version 0.16.1.
Thought this would be needed for blivet, but it wasn't the case. They seem to have their own mini-implementation. But it might be useful for other Nixers, who knows? Signed-off-by: aszlig <aszlig@redmoonstudios.org>
This commit is contained in:
parent
b574d0146f
commit
8c46977941
1 changed files with 26 additions and 0 deletions
|
@ -3737,6 +3737,32 @@ pythonPackages = python.modules // rec {
|
|||
};
|
||||
});
|
||||
|
||||
|
||||
pyudev = buildPythonPackage rec {
|
||||
name = "pyudev-${version}";
|
||||
version = "0.16.1";
|
||||
|
||||
src = fetchurl {
|
||||
url = "https://pypi.python.org/packages/source/p/pyudev/${name}.tar.gz";
|
||||
md5 = "4034de584b6d9efcbfc590a047c63285";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
sed -i -e '/udev_library_name/,/^ *libudev/ {
|
||||
s|CDLL([^,]*|CDLL("${pkgs.udev}/lib/libudev.so.1"|p; d
|
||||
}' pyudev/_libudev.py
|
||||
'';
|
||||
|
||||
propagatedBuildInputs = [ pkgs.udev ];
|
||||
|
||||
meta = {
|
||||
homepage = "http://pyudev.readthedocs.org/";
|
||||
description = "Pure Python libudev binding";
|
||||
license = stdenv.lib.licenses.lgpl21Plus;
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
pynzb = buildPythonPackage (rec {
|
||||
name = "pynzb-0.1.0";
|
||||
|
||||
|
|
Loading…
Reference in a new issue