Skip to content

Commit

Permalink
pythonPackages.pyudev: 0.20.0 -> 0.21.0
Browse files Browse the repository at this point in the history
Also move expression
  • Loading branch information
joachifm committed Mar 11, 2017
1 parent 4aaf27b commit 61edb1c
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 23 deletions.
26 changes: 26 additions & 0 deletions pkgs/development/python-modules/pyudev.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
{ lib, fetchurl, buildPythonPackage
, six, systemd
}:

buildPythonPackage rec {
name = "pyudev-${version}";
version = "0.21.0";

src = fetchurl {
url = "mirror://pypi/p/pyudev/${name}.tar.gz";
sha256 = "0arz0dqp75sszsmgm6vhg92n1lsx91ihddx3m944f4ah0487ljq9";
};

postPatch = ''
substituteInPlace src/pyudev/_ctypeslib/libudev.py \
--replace "find_library('udev')" "'${systemd.lib}/lib/libudev.so'"
'';

propagatedBuildInputs = [ systemd six ];

meta = {
homepage = "http://pyudev.readthedocs.org/";
description = "Pure Python libudev binding";
license = lib.licenses.lgpl21Plus;
};
}
25 changes: 2 additions & 23 deletions pkgs/top-level/python-packages.nix
Original file line number Diff line number Diff line change
Expand Up @@ -21184,31 +21184,10 @@ in {
buildInputs = with self; [ pyasn1 pycrypto ];
};

pyudev = buildPythonPackage rec {
name = "pyudev-${version}";
version = "0.20.0";

src = pkgs.fetchurl {
url = "mirror://pypi/p/pyudev/${name}.tar.gz";
sha256 = "0al4cpg0m8n7cd06w94x3cx8mxaqg08bfv4r6a3pkgqxc74mpn0l";
};

postPatch = ''
substituteInPlace src/pyudev/_ctypeslib/libudev.py \
--replace "find_library('udev')" "'${pkgs.systemd.lib}/lib/libudev.so'"
'';

propagatedBuildInputs = with self; [ pkgs.systemd six ];

meta = {
homepage = "http://pyudev.readthedocs.org/";
description = "Pure Python libudev binding";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
};
pyudev = callPackage ../development/python-modules/pyudev.nix {
inherit (pkgs) fetchurl systemd;
};


pynzb = buildPythonPackage (rec {
name = "pynzb-0.1.0";

Expand Down

0 comments on commit 61edb1c

Please sign in to comment.