parquet-tools: init at 0.2.9 (#142562)

This commit is contained in:
Phillip Cloud
2021-11-21 20:56:43 -05:00
committed by GitHub
parent 622cd51bd7
commit 09454d0f4a
2 changed files with 71 additions and 0 deletions
+69
View File
@@ -0,0 +1,69 @@
{ lib
, fetchFromGitHub
, fetchpatch
, python3Packages
}:
with python3Packages;
buildPythonApplication rec {
pname = "parquet-tools";
version = "0.2.9";
disabled = pythonOlder "3.8";
format = "pyproject";
src = fetchFromGitHub {
owner = "ktrueda";
repo = "parquet-tools";
rev = version;
sha256 = "0aw0x7lhagp4dwis09fsizr7zbhdpliav0ns5ll5qny7x4m6rkfy";
};
patches = [
(fetchpatch {
url = "https://github.com/ktrueda/parquet-tools/commit/1c70a07e1c9f17c8890d23aad3ded5dd6c706cb3.patch";
sha256 = "08j1prdqj8ksw8gwiyj7ivshk82ahmywbzmywclw52nlnniig0sa";
})
];
postPatch = ''
substituteInPlace pyproject.toml \
--replace 'thrift = "^0.13.0"' 'thrift = "*"' \
--replace 'halo = "^0.0.29"' 'halo = "*"'
substituteInPlace tests/test_inspect.py \
--replace "parquet-cpp-arrow version 5.0.0" "parquet-cpp-arrow version 6.0.0" \
--replace "serialized_size: 2222" "serialized_size: 2221"
'';
nativeBuildInputs = [ poetry-core ];
propagatedBuildInputs = [
boto3
colorama
halo
pandas
pyarrow
tabulate
thrift
];
checkInputs = [
pytestCheckHook
moto
pytest-mock
];
disabledTests = [
# these tests try to read python code as parquet and fail
"test_local_wildcard"
"test_local_and_s3_wildcard_files"
];
meta = with lib; {
description = "A CLI tool for parquet files";
homepage = "https://github.com/ktrueda/parquet-tools";
license = licenses.mit;
maintainers = with maintainers; [ cpcloud ];
};
}
+2
View File
@@ -1841,6 +1841,8 @@ with pkgs;
pacparser = callPackage ../tools/networking/pacparser { };
parquet-tools = callPackage ../tools/misc/parquet-tools { };
pass = callPackage ../tools/security/pass { };
passphrase2pgp = callPackage ../tools/security/passphrase2pgp { };