nixpkgs mirror (for testing)
github.com/NixOS/nixpkgs
nix
1{ stdenv, lib, python, systemd }:
2
3python.pkgs.buildPythonPackage rec {
4 pname = "pystemd";
5 version = "0.8.0";
6 src = python.pkgs.fetchPypi {
7 inherit pname version;
8 sha256 = "0wlrid2xd73dmzl4m0jgg6cqmkx3qs9v9nikvwxd8a5b8chf9hna";
9 };
10
11 disabled = python.pythonOlder "3.4";
12
13 buildInputs = [ systemd ];
14
15 checkInputs = with python.pkgs; [ pytest mock ];
16 checkPhase = "pytest tests";
17
18 meta = with lib; {
19 broken = (stdenv.isLinux && stdenv.isAarch64);
20 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.";
21 homepage = "https://github.com/facebookincubator/pystemd/";
22 license = licenses.lgpl21Plus;
23 maintainers = with maintainers; [ flokli ];
24 };
25}