depot/third_party/nixpkgs/pkgs/development/python-modules/pystemd/default.nix
Default email 504525a148 Project import generated by Copybara.
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
2024-01-02 12:29:13 +01:00

42 lines
920 B
Nix

{ stdenv
, buildPythonPackage
, lib
, python
, 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=";
};
disabled = python.pythonOlder "3.4";
buildInputs = [ systemd ];
nativeBuildInputs = [ pkg-config ];
nativeCheckInputs = [ lxml mock psutil pytest ];
checkPhase = "pytest tests";
meta = with lib; {
broken = (stdenv.isLinux && stdenv.isAarch64);
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 ];
};
}