1{ lib, buildPythonPackage, fetchFromGitHub, systemd, pkg-config }: 2 3buildPythonPackage rec { 4 pname = "systemd"; 5 version = "234"; 6 7 src = fetchFromGitHub { 8 owner = "systemd"; 9 repo = "python-systemd"; 10 rev = "v${version}"; 11 sha256 = "1fakw7qln44mfd6pj4kqsgyrhkc6cyr653id34kv0rdnb1bvysrz"; 12 }; 13 14 buildInputs = [ systemd ]; 15 nativeBuildInputs = [ pkg-config ]; 16 17 doCheck = false; 18 19 meta = with lib; { 20 description = "Python module for native access to the systemd facilities"; 21 homepage = "http://www.freedesktop.org/software/systemd/python-systemd/"; 22 license = licenses.lgpl21; 23 }; 24}