 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
		
	
			
		
			
				
	
	
		
			47 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
			
		
		
	
	
			47 lines
		
	
	
		
			1.2 KiB
		
	
	
	
		
			Nix
		
	
	
	
	
	
| {
 | |
|   lib,
 | |
|   fetchFromGitHub,
 | |
|   python3Packages,
 | |
| }:
 | |
| 
 | |
| python3Packages.buildPythonApplication rec {
 | |
|   pname = "q-text-as-data";
 | |
|   version = "2.0.19";
 | |
| 
 | |
|   src = fetchFromGitHub {
 | |
|     owner = "harelba";
 | |
|     repo = "q";
 | |
|     rev = version;
 | |
|     sha256 = "18cwyfjgxxavclyd08bmb943c8bvzp1gnqp4klkq5xlgqwivr4sv";
 | |
|   };
 | |
| 
 | |
|   propagatedBuildInputs = with python3Packages; [
 | |
|     setuptools
 | |
|     six
 | |
|   ];
 | |
| 
 | |
|   doCheck = false;
 | |
| 
 | |
|   patchPhase = ''
 | |
|     # remove broken symlink
 | |
|     rm bin/qtextasdata.py
 | |
| 
 | |
|     # not considered good practice pinning in install_requires
 | |
|     substituteInPlace setup.py --replace 'six==' 'six>='
 | |
|   '';
 | |
| 
 | |
|   meta = with lib; {
 | |
|     description = "Run SQL directly on CSV or TSV files";
 | |
|     longDescription = ''
 | |
|       q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).
 | |
| 
 | |
|       q treats ordinary files as database tables, and supports all SQL constructs, such as WHERE, GROUP BY, JOINs etc. It supports automatic column name and column type detection, and provides full support for multiple encodings.
 | |
|     '';
 | |
|     homepage = "http://harelba.github.io/q/";
 | |
|     license = licenses.gpl3;
 | |
|     maintainers = [ maintainers.taneb ];
 | |
|     platforms = platforms.all;
 | |
|     mainProgram = "q";
 | |
|   };
 | |
| }
 |