1{ stdenv, buildPythonPackage, fetchFromGitHub
2, enum-compat
3, xorgserver, pytest, i3, python
4}:
5
6buildPythonPackage rec {
7 pname = "i3ipc";
8 version = "1.6.0";
9
10 src = fetchFromGitHub {
11 owner = "acrisci";
12 repo = "i3ipc-python";
13 rev = "v${version}";
14 sha256 = "0sb525wvwcnikjaqzha94xr97r1gjys30csmaj17swlxgyczxvq5";
15 };
16
17 propagatedBuildInputs = [ enum-compat ];
18
19 checkInputs = [ xorgserver pytest i3 ];
20
21 checkPhase = ''${python.interpreter} run-tests.py'';
22
23 meta = with stdenv.lib; {
24 description = "An improved Python library to control i3wm and sway";
25 homepage = https://github.com/acrisci/i3ipc-python;
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ vanzef ];
28 };
29}