about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/pystemd/default.nix
blob: 1ff26ffa37baaad96e9054121e0389e9ea007b09 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
{ stdenv, python, systemd }:

python.pkgs.buildPythonPackage rec {
  pname = "pystemd";
  version = "0.8.0";
  src = python.pkgs.fetchPypi {
    inherit pname version;
    sha256 = "0wlrid2xd73dmzl4m0jgg6cqmkx3qs9v9nikvwxd8a5b8chf9hna";
  };

  disabled = python.pythonOlder "3.4";

  buildInputs = [ systemd ];

  checkInputs = with python.pkgs; [ pytest mock ];
  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.";
    homepage = "https://github.com/facebookincubator/pystemd/";
    license = licenses.lgpl21Plus;
    maintainers = with maintainers; [ flokli ];
  };
}