Skip to content

Commit

Permalink
pythonPackages.pyudev: 0.16.1 -> 0.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mbakke authored and joachifm committed Mar 11, 2017
1 parent 0a7673d commit 3051daf
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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/";
Expand Down

0 comments on commit 3051daf

Please sign in to comment.