From 2be514d5c389b50aeeb5773ab269863131a294a8 Mon Sep 17 00:00:00 2001 From: Florian Klink Date: Sat, 29 Sep 2018 21:25:08 +0200 Subject: [PATCH] pythonPackages.pystemd: init at 0.5.0 (#47517) --- .../python-modules/pystemd/default.nix | 23 +++++++++++++++++++ pkgs/top-level/python-packages.nix | 2 ++ 2 files changed, 25 insertions(+) create mode 100644 pkgs/development/python-modules/pystemd/default.nix diff --git a/pkgs/development/python-modules/pystemd/default.nix b/pkgs/development/python-modules/pystemd/default.nix new file mode 100644 index 000000000000..fc269641ecfd --- /dev/null +++ b/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 ]; + }; +} diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index b3fe62baf0a7..9a26dbb82ad9 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -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";