nixpkgs/pkgs/misc/flashfocus/default.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

51 lines
1.0 KiB
Nix
Raw Normal View History

{ lib, python3, fetchPypi, netcat-openbsd, nix-update-script }:
2020-08-18 15:03:50 +00:00
python3.pkgs.buildPythonApplication rec {
2020-08-18 15:03:50 +00:00
pname = "flashfocus";
version = "2.3.1";
2020-08-18 15:03:50 +00:00
src = fetchPypi {
2020-08-18 15:03:50 +00:00
inherit pname version;
sha256 = "sha256-XT3CKJWn1uKnPPsJC+MWlEAd8sWdVTEXz5b3n0UUedY=";
2020-08-18 15:03:50 +00:00
};
2022-01-11 21:09:45 +00:00
postPatch = ''
substituteInPlace bin/nc_flash_window \
--replace "nc" "${lib.getExe netcat-openbsd}"
2022-01-11 21:09:45 +00:00
'';
nativeBuildInputs = with python3.pkgs; [
2023-01-22 01:57:51 +00:00
pythonRelaxDepsHook
];
pythonRelaxDeps = [
"pyyaml"
"xcffib"
];
propagatedBuildInputs = with python3.pkgs; [
i3ipc
xcffib
click
cffi
xpybutil
marshmallow
pyyaml
];
2020-08-18 15:03:50 +00:00
# Tests require access to a X session
doCheck = false;
pythonImportsCheck = [ "flashfocus" ];
passthru.updateScript = nix-update-script { };
2020-08-18 15:03:50 +00: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 ];
};
}