mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-26 00:43:20 +00:00
Merge pull request #203731 from nagy/visidata
visidata: 2.9.1 -> 2.10.2
This commit is contained in:
commit
b0f55fa308
@ -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";
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user