depot/third_party/nixpkgs/pkgs/development/python-modules/pystemd/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

38 lines
863 B
Nix

{ stdenv
, buildPythonPackage
, lib
, python
, systemd
, pytest
, mock
, pkg-config }:
buildPythonPackage rec {
pname = "pystemd";
version = "0.10.0";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "sha256-10qBS/2gEIXbGorZC+PLJ9ryOlGrawPn4p7IEfoq6Fk=";
};
disabled = python.pythonOlder "3.4";
buildInputs = [ systemd ];
nativeBuildInputs = [ pkg-config ];
checkInputs = [ pytest mock ];
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 ];
};
}