pythonPackages.pyudev: 0.16.1 -> 0.20.0

This commit is contained in:
Marius Bakke 2016-06-18 15:38:23 +01:00 committed by Joachim Fasting
parent 0a7673d202
commit 3051dafeb6
No known key found for this signature in database
GPG Key ID: 7544761007FE4E08
1 changed files with 5 additions and 6 deletions

View File

@ -21202,20 +21202,19 @@ in {
pyudev = buildPythonPackage rec { pyudev = buildPythonPackage rec {
name = "pyudev-${version}"; name = "pyudev-${version}";
version = "0.16.1"; version = "0.20.0";
src = pkgs.fetchurl { src = pkgs.fetchurl {
url = "mirror://pypi/p/pyudev/${name}.tar.gz"; url = "mirror://pypi/p/pyudev/${name}.tar.gz";
sha256 = "765d1c14bd9bd031f64e2612225621984cb2bbb8cbc0c03538bcc4c735ff1c95"; sha256 = "0al4cpg0m8n7cd06w94x3cx8mxaqg08bfv4r6a3pkgqxc74mpn0l";
}; };
postPatch = '' postPatch = ''
sed -i -e '/udev_library_name/,/^ *libudev/ { substituteInPlace src/pyudev/_ctypeslib/libudev.py \
s|CDLL([^,]*|CDLL("${pkgs.systemd.lib}/lib/libudev.so.1"|p; d --replace "find_library('udev')" "'${pkgs.systemd.lib}/lib/libudev.so'"
}' pyudev/_libudev.py
''; '';
propagatedBuildInputs = with self; [ pkgs.systemd ]; propagatedBuildInputs = with self; [ pkgs.systemd six ];
meta = { meta = {
homepage = "http://pyudev.readthedocs.org/"; homepage = "http://pyudev.readthedocs.org/";