1{ stdenv, buildPythonPackage, fetchPypi, mock, pytest, six, systemd }:
2
3buildPythonPackage rec {
4 pname = "pystemd";
5 version = "0.5.0";
6 src = fetchPypi {
7 inherit pname version;
8 sha256 = "000001hxv25vwcsvc0avg42v89c7qcjdpw6dr8419prmcb9186i5";
9 };
10
11 buildInputs = [ systemd ];
12 propagatedBuildInputs = [ six ];
13
14 checkInputs = [ pytest mock ];
15 checkPhase = "pytest tests";
16
17 meta = with stdenv.lib; {
18 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.";
19 homepage = https://github.com/facebookincubator/pystemd/;
20 license = licenses.bsd0;
21 maintainers = with maintainers; [ flokli ];
22 };
23}