1{ stdenv
2, buildPythonPackage
3, lib
4, python
5, fetchPypi
6, systemd
7, pytest
8, mock
9, pkg-config }:
10
11buildPythonPackage rec {
12 pname = "pystemd";
13 version = "0.10.0";
14 src = fetchPypi {
15 inherit pname version;
16 hash = "sha256-10qBS/2gEIXbGorZC+PLJ9ryOlGrawPn4p7IEfoq6Fk=";
17 };
18
19 disabled = python.pythonOlder "3.4";
20
21 buildInputs = [ systemd ];
22
23 nativeBuildInputs = [ pkg-config ];
24
25 nativeCheckInputs = [ pytest mock ];
26
27 checkPhase = "pytest tests";
28
29 meta = with lib; {
30 broken = (stdenv.isLinux && stdenv.isAarch64);
31 description = ''
32 Thin Cython-based wrapper on top of libsystemd, focused on exposing the
33 dbus API via sd-bus in an automated and easy to consume way
34 '';
35 homepage = "https://github.com/facebookincubator/pystemd/";
36 license = licenses.lgpl21Plus;
37 maintainers = with maintainers; [ flokli ];
38 };
39}