2023-09-24 22:27:26 +01:00
|
|
|
{ lib, python3Packages, fetchPypi, netcat-openbsd, nix-update-script }:
|
2020-08-18 16:03:50 +01:00
|
|
|
|
2023-09-24 22:27:26 +01:00
|
|
|
python3Packages.buildPythonApplication rec {
|
2020-08-18 16:03:50 +01:00
|
|
|
pname = "flashfocus";
|
2023-09-28 10:33:50 +01:00
|
|
|
version = "2.4.1";
|
2023-09-24 22:25:16 +01:00
|
|
|
|
|
|
|
format = "pyproject";
|
2020-08-18 16:03:50 +01:00
|
|
|
|
2023-05-25 15:07:31 +01:00
|
|
|
src = fetchPypi {
|
2020-08-18 16:03:50 +01:00
|
|
|
inherit pname version;
|
2023-09-28 10:33:50 +01:00
|
|
|
sha256 = "sha256-O6jRQ6e96b8CuumTD6TGELaz26No7WFZgGSnNSlqzuE=";
|
2020-08-18 16:03:50 +01:00
|
|
|
};
|
|
|
|
|
2022-01-11 21:09:45 +00:00
|
|
|
postPatch = ''
|
2022-05-07 15:01:05 +01:00
|
|
|
substituteInPlace bin/nc_flash_window \
|
|
|
|
--replace "nc" "${lib.getExe netcat-openbsd}"
|
2022-01-11 21:09:45 +00:00
|
|
|
'';
|
|
|
|
|
2023-09-24 22:27:26 +01:00
|
|
|
nativeBuildInputs = with python3Packages; [
|
2023-01-22 01:57:51 +00:00
|
|
|
pythonRelaxDepsHook
|
2023-09-24 22:25:16 +01:00
|
|
|
setuptools
|
2023-01-22 01:57:51 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
pythonRelaxDeps = [
|
|
|
|
"pyyaml"
|
|
|
|
"xcffib"
|
2021-03-21 17:24:14 +00:00
|
|
|
];
|
|
|
|
|
2023-09-24 22:27:26 +01:00
|
|
|
propagatedBuildInputs = with python3Packages; [
|
2021-03-21 17:24:14 +00:00
|
|
|
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" ];
|
|
|
|
|
2022-12-25 22:11:14 +00:00
|
|
|
passthru.updateScript = nix-update-script { };
|
2022-10-24 20:25:37 +01:00
|
|
|
|
2020-08-18 16:03:50 +01:00
|
|
|
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 ];
|
|
|
|
};
|
|
|
|
}
|