Unverified Commit b0f55fa3 authored by 7c6f434c's avatar 7c6f434c Committed by GitHub
Browse files

Merge pull request #203731 from nagy/visidata

visidata: 2.9.1 -> 2.10.2
parents 9f6a1541 fb8aaadf
Loading
Loading
Loading
Loading
+16 −3
Original line number Diff line number Diff line
@@ -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";
  };
}