depot/third_party/nixpkgs/pkgs/development/python-modules/pystemd/default.nix
Default email 8ac5e011d6 Project import generated by Copybara.
GitOrigin-RevId: 2c3273caa153ee8eb5786bc8141b85b859e7efd7
2020-04-24 19:36:52 -04:00

24 lines
729 B
Nix

{ stdenv, python, systemd }:
python.pkgs.buildPythonPackage rec {
pname = "pystemd";
version = "0.6.0";
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "054a3ni71paqa1xa786840z3kjixcgyqdbscyq8nfxp3hwn0gz5i";
};
disabled = !python.pkgs.isPy3k;
buildInputs = [ systemd ];
checkInputs = with python.pkgs; [ pytest mock ];
checkPhase = "pytest tests";
meta = with stdenv.lib; {
description = "A 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 ];
};
}