pystemd: update license, make it python 3 only

This commit is contained in:
Florian Klink 2019-05-02 11:27:13 +02:00
parent 15c64ae4cb
commit 90568dea26

View file

@ -1,23 +1,24 @@
{ stdenv, buildPythonPackage, fetchPypi, mock, pytest, six, systemd }:
{ stdenv, python, systemd }:
buildPythonPackage rec {
python.pkgs.buildPythonPackage rec {
pname = "pystemd";
version = "0.6.0";
src = fetchPypi {
src = python.pkgs.fetchPypi {
inherit pname version;
sha256 = "054a3ni71paqa1xa786840z3kjixcgyqdbscyq8nfxp3hwn0gz5i";
};
buildInputs = [ systemd ];
propagatedBuildInputs = [ six ];
disabled = !python.pkgs.isPy3k;
checkInputs = [ pytest mock ];
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.bsd0;
license = licenses.lgpl21Plus;
maintainers = with maintainers; [ flokli ];
};
}