Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 19.09 24 lines 727 B view raw
1{ stdenv, python, systemd }: 2 3python.pkgs.buildPythonPackage rec { 4 pname = "pystemd"; 5 version = "0.6.0"; 6 src = python.pkgs.fetchPypi { 7 inherit pname version; 8 sha256 = "054a3ni71paqa1xa786840z3kjixcgyqdbscyq8nfxp3hwn0gz5i"; 9 }; 10 11 disabled = !python.pkgs.isPy3k; 12 13 buildInputs = [ systemd ]; 14 15 checkInputs = with python.pkgs; [ pytest mock ]; 16 checkPhase = "pytest tests"; 17 18 meta = with stdenv.lib; { 19 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."; 20 homepage = https://github.com/facebookincubator/pystemd/; 21 license = licenses.lgpl21Plus; 22 maintainers = with maintainers; [ flokli ]; 23 }; 24}