summary refs log blame commit diff
path: root/pkgs/misc/i3a/default.nix
blob: 42d8c11915c8a7396418100fa244e386e6d23c22 (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
                                    




                                            
                   



                                                                 




                                                                           
                                                         
 

                                                    

                  



                                                                                               
                                             

    
{ lib, python3Packages, fetchPypi }:

python3Packages.buildPythonApplication rec {
  pname = "i3a";
  version = "2.0.1";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-2k1HYtgJ76qXLvX6RmOSKtMMg+K722n8U9YmBANvQvE=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "python_requires='>=3.7,<3.10'," "python_requires='>=3.7',"
  '';

  nativeBuildInputs = [ python3Packages.setuptools-scm ];

  propagatedBuildInputs = [ python3Packages.i3ipc ];

  doCheck = false;

  meta = with lib; {
    homepage = "https://git.goral.net.pl/mgoral/i3a";
    description = "A set of scripts used for automation of i3 and sway window manager layouts";
    license = licenses.gpl3Plus;
    maintainers = with maintainers; [ moni ];
  };
}