Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
51 lines
1.3 KiB
Nix
51 lines
1.3 KiB
Nix
{
|
|
lib,
|
|
fetchFromGitHub,
|
|
python3Packages,
|
|
}:
|
|
|
|
python3Packages.buildPythonApplication rec {
|
|
pname = "q-text-as-data";
|
|
version = "2.0.19";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "harelba";
|
|
repo = "q";
|
|
rev = version;
|
|
sha256 = "18cwyfjgxxavclyd08bmb943c8bvzp1gnqp4klkq5xlgqwivr4sv";
|
|
};
|
|
|
|
build-system = with python3Packages; [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = with python3Packages; [
|
|
six
|
|
];
|
|
|
|
doCheck = false;
|
|
|
|
patchPhase = ''
|
|
# remove broken symlink
|
|
rm bin/qtextasdata.py
|
|
|
|
# not considered good practice pinning in install_requires
|
|
substituteInPlace setup.py --replace-fail '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";
|
|
};
|
|
}
|