1{ stdenv, buildPythonPackage, fetchFromGitHub
2, enum-compat
3, xorgserver, pytest, i3, python
4}:
5
6buildPythonPackage rec {
7 pname = "i3ipc";
8 version = "1.4.0";
9
10 src = fetchFromGitHub {
11 owner = "acrisci";
12 repo = "i3ipc-python";
13 rev = "v${version}";
14 sha256 = "15drq16ncmjrgsri6gjzp0qm8abycm92nicm78q3k7vy7rqpvfnh";
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";
25 homepage = https://github.com/acrisci/i3ipc-python;
26 license = licenses.bsd3;
27 maintainers = with maintainers; [ vanzef ];
28 };
29}