fa5436e0a7
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
48 lines
884 B
Nix
48 lines
884 B
Nix
{
|
|
stdenv,
|
|
buildPythonPackage,
|
|
lib,
|
|
fetchPypi,
|
|
systemd,
|
|
lxml,
|
|
psutil,
|
|
pytest,
|
|
mock,
|
|
pkg-config,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pystemd";
|
|
version = "0.13.2";
|
|
format = "setuptools";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-Tc+ksTpVaFxJ09F8EGMeyhjDN3D2Yxb47yM3uJUcwUQ=";
|
|
};
|
|
|
|
buildInputs = [ systemd ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
propagatedBuildInputs = [
|
|
lxml
|
|
psutil
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytest
|
|
];
|
|
|
|
checkPhase = "pytest tests";
|
|
|
|
meta = with lib; {
|
|
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
|
|
'';
|
|
homepage = "https://github.com/facebookincubator/pystemd/";
|
|
license = licenses.lgpl21Plus;
|
|
maintainers = with maintainers; [ flokli ];
|
|
};
|
|
}
|