 84d4f874c2
			
		
	
	
		84d4f874c2
		
	
	
	
	
		
			
			After final improvements to the official formatter implementation,
this commit now performs the first treewide reformat of Nix files using it.
This is part of the implementation of RFC 166.
Only "inactive" files are reformatted, meaning only files that
aren't being touched by any PR with activity in the past 2 months.
This is to avoid conflicts for PRs that might soon be merged.
Later we can do a full treewide reformat to get the rest,
which should not cause as many conflicts.
A CI check has already been running for some time to ensure that new and
already-formatted files are formatted, so the files being reformatted here
should also stay formatted.
This commit was automatically created and can be verified using
    nix-build a08b3a4d19.tar.gz \
      --argstr baseRev 78e9caf153f5a339bf1d4c000ff6f0a503a369c8
    result/bin/apply-formatting $NIXPKGS_PATH
		
	
			
		
			
				
	
	
		
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			42 lines
		
	
	
		
			1.0 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   fetchFromGitHub,
 | |
|   python3Packages,
 | |
| }:
 | |
| 
 | |
| with python3Packages;
 | |
| buildPythonApplication rec {
 | |
|   pname = "pylint-exit";
 | |
|   version = "1.2.0";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "jongracecox";
 | |
|     repo = pname;
 | |
|     rev = "v${version}";
 | |
|     sha256 = "0hwfny48g394visa3xd15425fsw596r3lhkfhswpjrdk2mnk3cny";
 | |
|   };
 | |
| 
 | |
|   # Converting the shebang manually as it is not picked up by patchShebangs
 | |
|   postPatch = ''
 | |
|     substituteInPlace pylint_exit.py \
 | |
|       --replace "#!/usr/local/bin/python" "#!${python.interpreter}"
 | |
|   '';
 | |
| 
 | |
|   # See https://github.com/jongracecox/pylint-exit/pull/7
 | |
|   buildInputs = [ m2r ];
 | |
| 
 | |
|   # setup.py reads its version from the TRAVIS_TAG environment variable
 | |
|   TRAVIS_TAG = version;
 | |
| 
 | |
|   checkPhase = ''
 | |
|     ${python.interpreter} -m doctest pylint_exit.py
 | |
|   '';
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Utility to handle pylint exit codes in an OS-friendly way";
 | |
|     license = licenses.mit;
 | |
|     homepage = "https://github.com/jongracecox/pylint-exit";
 | |
|     maintainers = [ maintainers.fabiangd ];
 | |
|   };
 | |
| }
 |