2022-08-12 12:06:08 +00:00
|
|
|
{ stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, lib
|
|
|
|
, python
|
2023-07-15 17:15:38 +00:00
|
|
|
, fetchPypi
|
2022-08-12 12:06:08 +00:00
|
|
|
, systemd
|
2023-11-16 04:20:00 +00:00
|
|
|
, lxml
|
|
|
|
, psutil
|
2022-08-12 12:06:08 +00:00
|
|
|
, 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";
|
2023-11-16 04:20:00 +00:00
|
|
|
version = "0.13.2";
|
2023-07-15 17:15:38 +00:00
|
|
|
src = fetchPypi {
|
2020-04-24 23:36:52 +00:00
|
|
|
inherit pname version;
|
2023-11-16 04:20:00 +00:00
|
|
|
hash = "sha256-Tc+ksTpVaFxJ09F8EGMeyhjDN3D2Yxb47yM3uJUcwUQ=";
|
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 ];
|
|
|
|
|
2023-11-16 04:20:00 +00:00
|
|
|
nativeCheckInputs = [ lxml mock psutil pytest ];
|
2022-08-12 12:06:08 +00:00
|
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|