2018-02-11 11:15:28 +01:00
|
|
|
{ stdenv, buildPythonPackage, fetchFromGitHub
|
|
|
|
, enum-compat
|
|
|
|
, xorgserver, pytest, i3, python
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "i3ipc";
|
2018-10-24 17:11:25 +02:00
|
|
|
version = "1.5.1";
|
2018-02-11 11:15:28 +01:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "acrisci";
|
|
|
|
repo = "i3ipc-python";
|
|
|
|
rev = "v${version}";
|
2018-10-24 17:11:25 +02:00
|
|
|
sha256 = "06d7g4d7cnh0vp5diavy3x9wz1w5nwdrb7ipc4g1c3a2wc78862d";
|
2018-02-11 11:15:28 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [ enum-compat ];
|
|
|
|
|
|
|
|
checkInputs = [ xorgserver pytest i3 ];
|
|
|
|
|
|
|
|
checkPhase = ''${python.interpreter} run-tests.py'';
|
|
|
|
|
|
|
|
meta = with stdenv.lib; {
|
|
|
|
description = "An improved Python library to control i3wm";
|
|
|
|
homepage = https://github.com/acrisci/i3ipc-python;
|
|
|
|
license = licenses.bsd3;
|
|
|
|
maintainers = with maintainers; [ vanzef ];
|
|
|
|
};
|
|
|
|
}
|