mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 13:43:22 +00:00
40 lines
867 B
Nix
40 lines
867 B
Nix
{ stdenv
|
|
, buildPythonPackage
|
|
, lib
|
|
, python
|
|
, fetchPypi
|
|
, systemd
|
|
, pytest
|
|
, mock
|
|
, pkg-config }:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pystemd";
|
|
version = "0.10.0";
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-10qBS/2gEIXbGorZC+PLJ9ryOlGrawPn4p7IEfoq6Fk=";
|
|
};
|
|
|
|
disabled = python.pythonOlder "3.4";
|
|
|
|
buildInputs = [ systemd ];
|
|
|
|
nativeBuildInputs = [ pkg-config ];
|
|
|
|
nativeCheckInputs = [ 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 ];
|
|
};
|
|
}
|