aboutsummaryrefslogtreecommitdiff
path: root/nixpkgs/pkgs/misc/flashfocus/default.nix
blob: 98f368132a91f7c73032c02cb4177d52b6a790d1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ lib, buildPythonApplication, fetchPypi, xcffib, pyyaml, click, i3ipc, marshmallow, cffi, xpybutil, pytestrunner }:


buildPythonApplication rec {
  pname = "flashfocus";
  version = "2.2.2";

  src = fetchPypi {
    inherit pname version;
    sha256 = "1z20d596rnc7cs0rrd221gjn14dmbr11djv94y9p4v7rr788sswv";
  };

  nativeBuildInputs = [ pytestrunner ];
  propagatedBuildInputs = [ i3ipc xcffib click cffi xpybutil marshmallow pyyaml ];

  # Tests require access to a X session
  doCheck = false;

  pythonImportsCheck = [ "flashfocus" ];

  meta = with lib; {
    homepage = "https://github.com/fennerm/flashfocus";
    description = "Simple focus animations for tiling window managers";
    license = licenses.mit;
    platforms = platforms.linux;
    maintainers = with maintainers; [ artturin ];
  };
}