q-text-as-data: init at 1.7.1

This commit is contained in:
Nathan van Doorn 2019-07-15 10:47:58 +01:00 committed by Frederik Rietdijk
parent 4e60699fa7
commit ddefb5f067
2 changed files with 37 additions and 0 deletions

View file

@ -0,0 +1,35 @@
{ stdenvNoCC, fetchFromGitHub, python2 }:
stdenvNoCC.mkDerivation rec {
pname = "q-text-as-data";
version = "1.7.1";
src = fetchFromGitHub {
owner = "harelba";
repo = "q";
rev = version;
sha256 = "021c2sd6qscz1ipwzzjf43pfd311dcay7yralksl25rs0r7h3li2";
};
buildInputs = [ python2 ];
dontBuild = true;
installPhase = ''
mkdir -p $out/bin
cp bin/q $out/bin
chmod +x $out/bin/q
'';
meta = with stdenvNoCC.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;
};
}

View file

@ -5715,6 +5715,8 @@ in
ocz-ssd-guru = callPackage ../tools/misc/ocz-ssd-guru { };
q-text-as-data = callPackage ../tools/misc/q-text-as-data { };
qalculate-gtk = callPackage ../applications/science/math/qalculate-gtk { };
qastools = libsForQt5.callPackage ../tools/audio/qastools { };