2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, python
|
|
|
|
, systemd
|
|
|
|
, pytest
|
|
|
|
, mock
|
|
|
|
, pkg-config }:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
buildPythonPackage rec {
|
2020-04-24 23:36:52 +00:00
|
|
|
pname = "pystemd";
|
2022-08-12 12:06:08 +00:00
|
|
|
version = "0.10.0";
|
2020-04-24 23:36:52 +00:00
|
|
|
src = python.pkgs.fetchPypi {
|
|
|
|
inherit pname version;
|
2022-08-12 12:06:08 +00:00
|
|
|
sha256 = "sha256-10qBS/2gEIXbGorZC+PLJ9ryOlGrawPn4p7IEfoq6Fk=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2020-10-16 20:44:37 +00:00
|
|
|
disabled = python.pythonOlder "3.4";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildInputs = [ systemd ];
|
|
|
|
|
2022-08-12 12:06:08 +00:00
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
|
|
|
|
checkInputs = [ pytest mock ];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = "pytest tests";
|
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2022-06-16 17:23:12 +00:00
|
|
|
broken = (stdenv.isLinux && stdenv.isAarch64);
|
2022-08-12 12:06:08 +00:00
|
|
|
description = ''
|
|
|
|
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
|
|
|
|
'';
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/facebookincubator/pystemd/";
|
|
|
|
license = licenses.lgpl21Plus;
|
|
|
|
maintainers = with maintainers; [ flokli ];
|
|
|
|
};
|
|
|
|
}
|