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