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