summaryrefslogtreecommitdiffstats
path: root/pkgs
diff options
context:
space:
mode:
author7c6f434c <7c6f434c@mail.ru>2022-12-01 15:26:05 +0000
committerGitHub <noreply@github.com>2022-12-01 15:26:05 +0000
commitb0f55fa3088be36dc4651b693bb1a3b4e1ab412d (patch)
treef716a94b9ee72293bc09b13f865c5c0375268841 /pkgs
parent9f6a1541c74b9b1f6a0700f638b5287f2f27771b (diff)
parentfb8aaadfd7d9e7b6fe6d8e57bb632deedbb9f2e0 (diff)
Merge pull request #203731 from nagy/visidata
visidata: 2.9.1 -> 2.10.2
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/applications/misc/visidata/default.nix19
1 files changed, 16 insertions, 3 deletions
diff --git a/pkgs/applications/misc/visidata/default.nix b/pkgs/applications/misc/visidata/default.nix
index 336a0821df1e..36a7285b3d25 100644
--- a/pkgs/applications/misc/visidata/default.nix
+++ b/pkgs/applications/misc/visidata/default.nix
@@ -20,19 +20,22 @@
, wcwidth
, zstandard
, setuptools
+, importlib-metadata
, git
, withPcap ? true, dpkt, dnslib
, withXclip ? stdenv.isLinux, xclip
+, testers
+, visidata
}:
buildPythonApplication rec {
pname = "visidata";
- version = "2.9.1";
+ version = "2.10.2";
src = fetchFromGitHub {
owner = "saulpw";
repo = "visidata";
rev = "v${version}";
- hash = "sha256-PKj+imTSAGMpF1tkN0WmE3l/4FmWkm/ktIDzF2ku48s=";
+ hash = "sha256-OKCrlUWHgbaLZJPVvs9lnw4cD27pRoO7F9oel1NzT6A=";
};
propagatedBuildInputs = [
@@ -64,6 +67,7 @@ buildPythonApplication rec {
zstandard
odfpy
setuptools
+ importlib-metadata
] ++ lib.optionals withPcap [ dpkt dnslib ]
++ lib.optional withXclip xclip;
@@ -75,6 +79,7 @@ buildPythonApplication rec {
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
checkPhase = ''
+ runHook preCheck
# disable some tests which require access to the network
rm tests/load-http.vd # http
rm tests/graph-cursor-nosave.vd # http
@@ -87,13 +92,21 @@ buildPythonApplication rec {
substituteInPlace dev/test.sh --replace "bin/vd" "$out/bin/vd"
bash dev/test.sh
+ runHook postCheck
'';
+ pythonImportsCheck = ["visidata"];
+
+ passthru.tests.version = testers.testVersion {
+ package = visidata;
+ version = "v${version}";
+ };
+
meta = {
description = "Interactive terminal multitool for tabular data";
license = lib.licenses.gpl3;
maintainers = with lib.maintainers; [ raskin markus1189 ];
- homepage = "http://visidata.org/";
+ homepage = "https://visidata.org/";
changelog = "https://github.com/saulpw/visidata/blob/v${version}/CHANGELOG.md";
};
}