2021-03-21 18:24:14 +01:00
|
|
|
{ lib, python3 }:
|
2020-08-18 17:03:50 +02:00
|
|
|
|
2021-03-21 18:24:14 +01:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-08-18 17:03:50 +02:00
|
|
|
pname = "flashfocus";
|
|
|
|
version = "2.2.2";
|
|
|
|
|
2021-03-21 18:24:14 +01:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2020-08-18 17:03:50 +02:00
|
|
|
inherit pname version;
|
|
|
|
sha256 = "1z20d596rnc7cs0rrd221gjn14dmbr11djv94y9p4v7rr788sswv";
|
|
|
|
};
|
|
|
|
|
2021-03-21 18:24:14 +01:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
|
|
|
pytestrunner
|
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
i3ipc
|
|
|
|
xcffib
|
|
|
|
click
|
|
|
|
cffi
|
|
|
|
xpybutil
|
|
|
|
marshmallow
|
|
|
|
pyyaml
|
|
|
|
];
|
2020-08-18 17:03:50 +02:00
|
|
|
|
|
|
|
# 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 ];
|
|
|
|
};
|
|
|
|
}
|