Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

visidata: 2.9.1 -> 2.10.2

Changelog: https://github.com/saulpw/visidata/blob/v2.10.2/CHANGELOG.md

+16 -3
+16 -3
pkgs/applications/misc/visidata/default.nix
··· 20 20 , wcwidth 21 21 , zstandard 22 22 , setuptools 23 + , importlib-metadata 23 24 , git 24 25 , withPcap ? true, dpkt, dnslib 25 26 , withXclip ? stdenv.isLinux, xclip 27 + , testers 28 + , visidata 26 29 }: 27 30 buildPythonApplication rec { 28 31 pname = "visidata"; 29 - version = "2.9.1"; 32 + version = "2.10.2"; 30 33 31 34 src = fetchFromGitHub { 32 35 owner = "saulpw"; 33 36 repo = "visidata"; 34 37 rev = "v${version}"; 35 - hash = "sha256-PKj+imTSAGMpF1tkN0WmE3l/4FmWkm/ktIDzF2ku48s="; 38 + hash = "sha256-OKCrlUWHgbaLZJPVvs9lnw4cD27pRoO7F9oel1NzT6A="; 36 39 }; 37 40 38 41 propagatedBuildInputs = [ ··· 64 67 zstandard 65 68 odfpy 66 69 setuptools 70 + importlib-metadata 67 71 ] ++ lib.optionals withPcap [ dpkt dnslib ] 68 72 ++ lib.optional withXclip xclip; 69 73 ··· 75 79 doCheck = stdenv.buildPlatform == stdenv.hostPlatform; 76 80 77 81 checkPhase = '' 82 + runHook preCheck 78 83 # disable some tests which require access to the network 79 84 rm tests/load-http.vd # http 80 85 rm tests/graph-cursor-nosave.vd # http ··· 87 92 88 93 substituteInPlace dev/test.sh --replace "bin/vd" "$out/bin/vd" 89 94 bash dev/test.sh 95 + runHook postCheck 90 96 ''; 91 97 98 + pythonImportsCheck = ["visidata"]; 99 + 100 + passthru.tests.version = testers.testVersion { 101 + package = visidata; 102 + version = "v${version}"; 103 + }; 104 + 92 105 meta = { 93 106 description = "Interactive terminal multitool for tabular data"; 94 107 license = lib.licenses.gpl3; 95 108 maintainers = with lib.maintainers; [ raskin markus1189 ]; 96 - homepage = "http://visidata.org/"; 109 + homepage = "https://visidata.org/"; 97 110 changelog = "https://github.com/saulpw/visidata/blob/v${version}/CHANGELOG.md"; 98 111 }; 99 112 }