2021-09-22 15:38:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, pytestCheckHook
|
|
|
|
, python-snappy
|
|
|
|
, thriftpy2
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "parquet";
|
|
|
|
version = "1.3.1";
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
2021-09-22 15:38:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jcrobak";
|
|
|
|
repo = "parquet-python";
|
|
|
|
rev = "v${version}";
|
|
|
|
sha256 = "1ahvg4dz9fzi4vdm9jmslq3v3jahjj17fdcc5fljgcw6h9yxyl2r";
|
|
|
|
};
|
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
python-snappy
|
|
|
|
thriftpy2
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-09-22 15:38:15 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Fails with AttributeError
|
|
|
|
"test_bson"
|
|
|
|
"testFromExample"
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "thriftpy2" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Python implementation of the parquet columnar file format";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "parquet";
|
2021-09-22 15:38:15 +00:00
|
|
|
homepage = "https://github.com/jcrobak/parquet-python";
|
|
|
|
license = licenses.bsd2;
|
|
|
|
maintainers = with maintainers; [ fab ];
|
|
|
|
};
|
|
|
|
}
|