2019-05-02 10:27:13 +01:00
|
|
|
{ stdenv, python, systemd }:
|
2018-09-29 20:25:08 +01:00
|
|
|
|
2019-05-02 10:27:13 +01:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2018-09-29 20:25:08 +01:00
|
|
|
pname = "pystemd";
|
2019-05-02 09:58:19 +01:00
|
|
|
version = "0.6.0";
|
2019-05-02 10:27:13 +01:00
|
|
|
src = python.pkgs.fetchPypi {
|
2018-09-29 20:25:08 +01:00
|
|
|
inherit pname version;
|
2019-05-02 09:58:19 +01:00
|
|
|
sha256 = "054a3ni71paqa1xa786840z3kjixcgyqdbscyq8nfxp3hwn0gz5i";
|
2018-09-29 20:25:08 +01:00
|
|
|
};
|
|
|
|
|
2019-05-02 10:27:13 +01:00
|
|
|
disabled = !python.pkgs.isPy3k;
|
|
|
|
|
2018-09-29 20:25:08 +01:00
|
|
|
buildInputs = [ systemd ];
|
|
|
|
|
2019-05-02 10:27:13 +01:00
|
|
|
checkInputs = with python.pkgs; [ pytest mock ];
|
2018-09-29 20:25:08 +01:00
|
|
|
checkPhase = "pytest tests";
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "A thin Cython-based wrapper on top of libsystemd, focused on exposing the dbus API via sd-bus in an automated and easy to consume way.";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/facebookincubator/pystemd/";
|
2019-05-02 10:27:13 +01:00
|
|
|
license = licenses.lgpl21Plus;
|
2018-09-29 20:25:08 +01:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|