2017-06-05 16:53:12 +02:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub, systemd, pkgconfig }:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
2017-11-09 12:26:09 +01:00
|
|
|
pname = "systemd";
|
2017-06-05 16:53:12 +02:00
|
|
|
version = "234";
|
2017-11-09 12:26:09 +01:00
|
|
|
name = pname + "-" + version;
|
2017-06-05 16:53:12 +02:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "systemd";
|
|
|
|
repo = "python-systemd";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1fakw7qln44mfd6pj4kqsgyrhkc6cyr653id34kv0rdnb1bvysrz";
|
|
|
|
};
|
|
|
|
|
|
|
|
buildInputs = [ systemd ];
|
|
|
|
nativeBuildInputs = [ pkgconfig ];
|
|
|
|
|
|
|
|
doCheck = false;
|
|
|
|
|
2017-06-05 19:28:15 +02:00
|
|
|
meta = with stdenv.lib; {
|
2017-06-05 16:53:12 +02:00
|
|
|
description = "Python module for native access to the systemd facilities";
|
|
|
|
homepage = http://www.freedesktop.org/software/systemd/python-systemd/;
|
|
|
|
license = licenses.lgpl21;
|
|
|
|
};
|
|
|
|
}
|