mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-15 13:37:21 +03:00
pythonPackages.pyudev: 0.16.1 -> 0.20.0
This commit is contained in:
parent
0a7673d202
commit
3051dafeb6
@ -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/";
|
||||
|
Loading…
Reference in New Issue
Block a user