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:
aszlig 2013-06-24 08:40:12 +02:00
parent b574d0146f
commit 8c46977941
No known key found for this signature in database
GPG key ID: D0EBD0EC8C2DC961

View file

@ -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";