2021-03-21 17:24:14 +00:00
|
|
|
{ lib, python3 }:
|
2020-08-18 16:03:50 +01:00
|
|
|
|
2021-03-21 17:24:14 +00:00
|
|
|
python3.pkgs.buildPythonApplication rec {
|
2020-08-18 16:03:50 +01:00
|
|
|
pname = "flashfocus";
|
2021-07-15 04:23:32 +01:00
|
|
|
version = "2.2.3";
|
2020-08-18 16:03:50 +01:00
|
|
|
|
2021-03-21 17:24:14 +00:00
|
|
|
src = python3.pkgs.fetchPypi {
|
2020-08-18 16:03:50 +01:00
|
|
|
inherit pname version;
|
2021-07-15 04:23:32 +01:00
|
|
|
sha256 = "0cn44hryvz2wl7xklaslxsb3l2i3f8jkgmml0n9v2ks22j5l4r4h";
|
2020-08-18 16:03:50 +01:00
|
|
|
};
|
|
|
|
|
2021-03-21 17:24:14 +00:00
|
|
|
nativeBuildInputs = with python3.pkgs; [
|
2021-07-20 22:07:53 +01:00
|
|
|
pytest-runner
|
2021-03-21 17:24:14 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
propagatedBuildInputs = with python3.pkgs; [
|
|
|
|
i3ipc
|
|
|
|
xcffib
|
|
|
|
click
|
|
|
|
cffi
|
|
|
|
xpybutil
|
|
|
|
marshmallow
|
|
|
|
pyyaml
|
|
|
|
];
|
2020-08-18 16:03:50 +01: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 ];
|
|
|
|
};
|
|
|
|
}
|