nixpkgs/pkgs/applications/misc/visidata/default.nix

51 lines
925 B
Nix
Raw Normal View History

{ buildPythonApplication
, lib
, fetchFromGitHub
, dateutil
, pyyaml
, openpyxl
, xlrd
, h5py
, fonttools
, lxml
, pandas
, pyshp
, setuptools
, withPcap ? true, dpkt ? null, dnslib ? null
2018-10-23 09:00:00 +00:00
}:
buildPythonApplication rec {
pname = "visidata";
2021-01-04 13:51:00 +00:00
version = "2.1.1";
2018-10-23 09:00:00 +00:00
src = fetchFromGitHub {
owner = "saulpw";
repo = "visidata";
rev = "v${version}";
2021-01-04 13:51:00 +00:00
sha256 = "018z06bfcw0l4k2zdwbgxna9fss4wdqj64ckw5qjis14sb3zkr28";
2018-10-23 09:00:00 +00:00
};
propagatedBuildInputs = [
dateutil
pyyaml
openpyxl
xlrd
h5py
fonttools
lxml
pandas
pyshp
setuptools
] ++ lib.optionals withPcap [ dpkt dnslib ];
2018-10-23 09:00:00 +00:00
doCheck = false;
meta = {
inherit version;
description = "Interactive terminal multitool for tabular data";
license = lib.licenses.gpl3;
maintainers = [ lib.maintainers.raskin ];
platforms = with lib.platforms; linux ++ darwin;
2018-10-23 09:00:00 +00:00
homepage = "http://visidata.org/";
};
}