Skip to content

Commit

Permalink
pythonPackages.pystemd: init at 0.5.0 (#47517)
Browse files Browse the repository at this point in the history
  • Loading branch information
flokli authored and xeji committed Sep 29, 2018
1 parent 5a1652e commit 2be514d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 0 deletions.
23 changes: 23 additions & 0 deletions pkgs/development/python-modules/pystemd/default.nix
@@ -0,0 +1,23 @@
{ stdenv, buildPythonPackage, fetchPypi, mock, pytest, six, systemd }:

buildPythonPackage rec {
pname = "pystemd";
version = "0.5.0";
src = fetchPypi {
inherit pname version;
sha256 = "000001hxv25vwcsvc0avg42v89c7qcjdpw6dr8419prmcb9186i5";
};

buildInputs = [ systemd ];
propagatedBuildInputs = [ six ];

checkInputs = [ 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.bsd0;
maintainers = with maintainers; [ flokli ];
};
}
2 changes: 2 additions & 0 deletions pkgs/top-level/python-packages.nix
Expand Up @@ -9805,6 +9805,8 @@ in {

python-pushover = callPackage ../development/python-modules/pushover {};

pystemd = callPackage ../development/python-modules/pystemd { systemd = pkgs.systemd; };

mongodict = buildPythonPackage rec {
name = "mongodict-${version}";
version = "0.3.1";
Expand Down

0 comments on commit 2be514d

Please sign in to comment.