biome: 1.9.2 -> 1.9.3
[NixPkgs.git] / pkgs / tools / X11 / xborders / default.nix
bloba9fa6318dffbf4f0a970b6585612144b8341019f
1 { lib
2 , python3Packages
3 , fetchFromGitHub
4 , libwnck
5 , gtk3
6 , libnotify
7 , wrapGAppsHook3
8 , gobject-introspection
9 , substituteAll
12 python3Packages.buildPythonPackage rec {
13   pname = "xborders";
14   version = "3.4"; # in version.txt
16   src = fetchFromGitHub {
17     owner = "deter0";
18     repo = "xborder";
19     rev = "e74ae532b9555c59d195537934fa355b3fea73c5";
20     hash = "sha256-UKsseNkXest6npPqJKvKL0iBWeK+S7zynrDlyXIOmF4=";
21   };
23   buildInputs = [
24     libwnck
25     gtk3
26     libnotify
27   ];
29   nativeBuildInputs = [
30     wrapGAppsHook3
31     gobject-introspection
32   ];
34   propagatedBuildInputs = with python3Packages; [
35     pycairo
36     requests
37     pygobject3
38   ];
40   postPatch = let
41     setup = substituteAll {
42       src = ./setup.py;
43       desc = meta.description; # "description" is reserved
44       inherit pname version;
45     };
46   in ''
47     ln -s ${setup} setup.py
48   '';
50   meta = with lib; {
51     description = "Active window border replacement for window managers";
52     homepage = "https://github.com/deter0/xborder";
53     license = licenses.unlicense;
54     maintainers = with maintainers; [ elnudev ];
55     platforms = platforms.linux;
56     mainProgram = "xborders";
57   };