2021-01-25 09:26:54 +01:00
|
|
|
{ lib, python, systemd }:
|
2018-09-29 21:25:08 +02:00
|
|
|
|
2019-05-02 11:27:13 +02:00
|
|
|
python.pkgs.buildPythonPackage rec {
|
2018-09-29 21:25:08 +02:00
|
|
|
pname = "pystemd";
|
2020-10-10 19:03:23 +02:00
|
|
|
version = "0.8.0";
|
2019-05-02 11:27:13 +02:00
|
|
|
src = python.pkgs.fetchPypi {
|
2018-09-29 21:25:08 +02:00
|
|
|
inherit pname version;
|
2020-10-10 19:03:23 +02:00
|
|
|
sha256 = "0wlrid2xd73dmzl4m0jgg6cqmkx3qs9v9nikvwxd8a5b8chf9hna";
|
2018-09-29 21:25:08 +02:00
|
|
|
};
|
|
|
|
|
2020-10-10 19:03:23 +02:00
|
|
|
disabled = python.pythonOlder "3.4";
|
2019-05-02 11:27:13 +02:00
|
|
|
|
2018-09-29 21:25:08 +02:00
|
|
|
buildInputs = [ systemd ];
|
|
|
|
|
2019-05-02 11:27:13 +02:00
|
|
|
checkInputs = with python.pkgs; [ pytest mock ];
|
2018-09-29 21:25:08 +02:00
|
|
|
checkPhase = "pytest tests";
|
|
|
|
|
2021-01-11 08:54:33 +01:00
|
|
|
meta = with lib; {
|
2018-09-29 21:25:08 +02:00
|
|
|
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 03:11:51 +02:00
|
|
|
homepage = "https://github.com/facebookincubator/pystemd/";
|
2019-05-02 11:27:13 +02:00
|
|
|
license = licenses.lgpl21Plus;
|
2018-09-29 21:25:08 +02:00
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|