1{ 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 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."; 20 homepage = "https://github.com/facebookincubator/pystemd/"; 21 license = licenses.lgpl21Plus; 22 maintainers = with maintainers; [ flokli ]; 23 }; 24}