depot/third_party/nixpkgs/pkgs/misc/flashfocus/default.nix
Default email 5e7c2d6cef Project import generated by Copybara.
GitOrigin-RevId: f99e5f03cc0aa231ab5950a15ed02afec45ed51a
2023-10-09 21:29:22 +02:00

53 lines
1.1 KiB
Nix

{ lib, python3Packages, fetchPypi, netcat-openbsd, nix-update-script }:
python3Packages.buildPythonApplication rec {
pname = "flashfocus";
version = "2.4.1";
format = "pyproject";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-O6jRQ6e96b8CuumTD6TGELaz26No7WFZgGSnNSlqzuE=";
};
postPatch = ''
substituteInPlace bin/nc_flash_window \
--replace "nc" "${lib.getExe netcat-openbsd}"
'';
nativeBuildInputs = with python3Packages; [
pythonRelaxDepsHook
setuptools
];
pythonRelaxDeps = [
"pyyaml"
"xcffib"
];
propagatedBuildInputs = with python3Packages; [
i3ipc
xcffib
click
cffi
xpybutil
marshmallow
pyyaml
];
# Tests require access to a X session
doCheck = false;
pythonImportsCheck = [ "flashfocus" ];
passthru.updateScript = nix-update-script { };
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 ];
};
}