lol

q-text-as-data: 1.7.4 -> 2.0.19

authored by

Claudio Bley and committed by
Claudio Bley
57ab8454 13481f2a

+17 -11
+17 -11
pkgs/tools/misc/q-text-as-data/default.nix
··· 1 - { stdenvNoCC, fetchFromGitHub, python2 }: 1 + { lib, fetchFromGitHub, python3Packages }: 2 2 3 - stdenvNoCC.mkDerivation rec { 3 + python3Packages.buildPythonApplication rec { 4 4 pname = "q-text-as-data"; 5 - version = "1.7.4"; 5 + version = "2.0.19"; 6 6 7 7 src = fetchFromGitHub { 8 8 owner = "harelba"; 9 9 repo = "q"; 10 10 rev = version; 11 - sha256 = "0p8rbfwwcqjyrix51v52zp9b03z4xg1fv2raf2ygqp9a4l27dca8"; 11 + sha256 = "18cwyfjgxxavclyd08bmb943c8bvzp1gnqp4klkq5xlgqwivr4sv"; 12 12 }; 13 13 14 - buildInputs = [ python2 ]; 15 - dontBuild = true; 14 + propagatedBuildInputs = with python3Packages; [ 15 + setuptools 16 + six 17 + ]; 16 18 17 - installPhase = '' 18 - mkdir -p $out/bin 19 - cp bin/q $out/bin 20 - chmod +x $out/bin/q 19 + doCheck = false; 20 + 21 + patchPhase = '' 22 + # remove broken symlink 23 + rm bin/qtextasdata.py 24 + 25 + # not considered good practice pinning in install_requires 26 + substituteInPlace setup.py --replace 'six==' 'six>=' 21 27 ''; 22 28 23 - meta = with stdenvNoCC.lib; { 29 + meta = with lib; { 24 30 description = "Run SQL directly on CSV or TSV files"; 25 31 longDescription = '' 26 32 q is a command line tool that allows direct execution of SQL-like queries on CSVs/TSVs (and any other tabular text files).