diff options
author | Olli Helenius <liff@iki.fi> | 2022-06-21 16:55:51 +0300 |
---|---|---|
committer | Olli Helenius <liff@iki.fi> | 2022-06-21 16:55:51 +0300 |
commit | 6863e6a229662af0ffb1bcd192448928e943d88f (patch) | |
tree | 42cbd2415a4dc98167c9f41bde6984a020207b5c /pkgs/tools/misc/dsq | |
parent | d6cc5370a20d086397bf8e80ad5ece64af563761 (diff) |
dsq: 0.16.0 -> 0.20.1
Diffstat (limited to 'pkgs/tools/misc/dsq')
-rw-r--r-- | pkgs/tools/misc/dsq/default.nix | 26 |
1 files changed, 10 insertions, 16 deletions
diff --git a/pkgs/tools/misc/dsq/default.nix b/pkgs/tools/misc/dsq/default.nix index 72cc82282e3af..1d6dde3c3cffa 100644 --- a/pkgs/tools/misc/dsq/default.nix +++ b/pkgs/tools/misc/dsq/default.nix @@ -9,42 +9,36 @@ , python3 , curl , jq +, p7zip , dsq }: buildGoModule rec { pname = "dsq"; - version = "0.16.0"; + version = "0.20.1"; src = fetchFromGitHub { owner = "multiprocessio"; repo = "dsq"; rev = version; - hash = "sha256-emBLYiNOHYp3XsaY172DDtIdquj3U3U/Q6bogC3rvFQ="; + hash = "sha256-zTrIs6Q/+PW6CKCx1L8VaXhc1ZAqbb+Od+LJNjPCOTs="; }; - vendorSha256 = "sha256-ZZDZ3FWgOpRJB+X1hrlP8Hh1n3l7jUd39H5MDz88wOs="; + vendorSha256 = "sha256-bLaBBWChK2RKXd/rX9m9UfHu8zt0j8TOm5S2M02U91A="; ldflags = [ "-X" "main.Version=${version}" ]; - checkInputs = [ python3 curl jq ]; + checkInputs = [ python3 curl jq p7zip ]; - preCheck = - let - taxiCsv = fetchurl { - url = "https://s3.amazonaws.com/nyc-tlc/trip+data/yellow_tripdata_2021-04.csv"; - hash = "sha256-CXJPraOYAy5tViDcBi9gxI/rJ3ZXqOa/nJ/d+aREV+M="; - }; - in - '' - substituteInPlace scripts/test.py \ - --replace '${taxiCsv.url}' file://${taxiCsv} \ - --replace 'dsq latest' 'dsq ${version}' - ''; + preCheck = '' + substituteInPlace scripts/test.py \ + --replace 'dsq latest' 'dsq ${version}' + ''; checkPhase = '' runHook preCheck + 7z e testdata/taxi.csv.7z cp "$GOPATH/bin/dsq" . python3 scripts/test.py |