uboot: (firmwareOdroidC2/C4) don't invoke patch tool, use patches = [] instead
https://github.com/NixOS/nixpkgs/blob/master/pkgs/stdenv/generic/setup.sh#L948 this can do it nicely. Signed-off-by: Anton Arapov <anton@deadbeef.mx>
This commit is contained in:
commit
56de2bcd43
30691 changed files with 3076956 additions and 0 deletions
97
pkgs/applications/misc/visidata/default.nix
Normal file
97
pkgs/applications/misc/visidata/default.nix
Normal file
|
|
@ -0,0 +1,97 @@
|
|||
{ stdenv
|
||||
, lib
|
||||
, buildPythonApplication
|
||||
, fetchFromGitHub
|
||||
, python-dateutil
|
||||
, pandas
|
||||
, requests
|
||||
, lxml
|
||||
, openpyxl
|
||||
, xlrd
|
||||
, h5py
|
||||
, odfpy
|
||||
, psycopg2
|
||||
, pyshp
|
||||
, fonttools
|
||||
, pyyaml
|
||||
, pdfminer-six
|
||||
, vobject
|
||||
, tabulate
|
||||
, wcwidth
|
||||
, zstandard
|
||||
, setuptools
|
||||
, git
|
||||
, withPcap ? true, dpkt, dnslib
|
||||
}:
|
||||
buildPythonApplication rec {
|
||||
pname = "visidata";
|
||||
version = "2.8";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "saulpw";
|
||||
repo = "visidata";
|
||||
rev = "v${version}";
|
||||
sha256 = "1lcx444yrzmcvix977cgaf18lfrf9yrn2r14ln7knx8ghc15vkqb";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
# from visidata/requirements.txt
|
||||
# packages not (yet) present in nixpkgs are commented
|
||||
python-dateutil
|
||||
pandas
|
||||
requests
|
||||
lxml
|
||||
openpyxl
|
||||
xlrd
|
||||
h5py
|
||||
psycopg2
|
||||
pyshp
|
||||
#mapbox-vector-tile
|
||||
#pypng
|
||||
fonttools
|
||||
#sas7bdat
|
||||
#xport
|
||||
#savReaderWriter
|
||||
pyyaml
|
||||
#namestand
|
||||
#datapackage
|
||||
pdfminer-six
|
||||
#tabula
|
||||
vobject
|
||||
tabulate
|
||||
wcwidth
|
||||
zstandard
|
||||
odfpy
|
||||
setuptools
|
||||
] ++ lib.optionals withPcap [ dpkt dnslib ];
|
||||
|
||||
checkInputs = [
|
||||
git
|
||||
];
|
||||
|
||||
# check phase uses the output bin, which is not possible when cross-compiling
|
||||
doCheck = stdenv.buildPlatform == stdenv.hostPlatform;
|
||||
|
||||
checkPhase = ''
|
||||
# disable some tests which require access to the network
|
||||
rm tests/load-http.vd # http
|
||||
rm tests/graph-cursor-nosave.vd # http
|
||||
rm tests/messenger-nosave.vd # dns
|
||||
|
||||
# tests use git to compare outputs to references
|
||||
git init -b "test-reference"
|
||||
git config user.name "nobody"; git config user.email "no@where"
|
||||
git add .; git commit -m "test reference"
|
||||
|
||||
substituteInPlace dev/test.sh --replace "bin/vd" "$out/bin/vd"
|
||||
bash dev/test.sh
|
||||
'';
|
||||
|
||||
meta = {
|
||||
description = "Interactive terminal multitool for tabular data";
|
||||
license = lib.licenses.gpl3;
|
||||
maintainers = with lib.maintainers; [ raskin markus1189 ];
|
||||
homepage = "http://visidata.org/";
|
||||
changelog = "https://github.com/saulpw/visidata/blob/v${version}/CHANGELOG.md";
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue