Merge pull request #329823 from ExpidusOS/fix/pkgsllvm/elfutils
[NixPkgs.git] / pkgs / misc / flashfocus / default.nix
blob8c7fb067f1ab059828e9d92938369a139c085f67
1 { lib, python3Packages, fetchPypi, netcat-openbsd, nix-update-script }:
3 python3Packages.buildPythonApplication rec {
4   pname = "flashfocus";
5   version = "2.4.1";
7   format = "pyproject";
9   src = fetchPypi {
10     inherit pname version;
11     hash = "sha256-O6jRQ6e96b8CuumTD6TGELaz26No7WFZgGSnNSlqzuE=";
12   };
14   postPatch = ''
15     substituteInPlace bin/nc_flash_window \
16       --replace "nc" "${lib.getExe netcat-openbsd}"
17   '';
19   nativeBuildInputs = with python3Packages; [
20     setuptools
21   ];
23   pythonRelaxDeps = [
24     "pyyaml"
25     "xcffib"
26   ];
28   propagatedBuildInputs = with python3Packages; [
29     i3ipc
30     xcffib
31     click
32     cffi
33     xpybutil
34     marshmallow
35     pyyaml
36   ];
38   # Tests require access to a X session
39   doCheck = false;
41   pythonImportsCheck = [ "flashfocus" ];
43   passthru.updateScript = nix-update-script { };
45   meta = with lib; {
46     homepage = "https://github.com/fennerm/flashfocus";
47     description = "Simple focus animations for tiling window managers";
48     license = licenses.mit;
49     platforms = platforms.linux;
50     maintainers = with maintainers; [ artturin ];
51   };