3
0
Fork 0
forked from mirrors/nixpkgs

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

View file

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