Files
nixpkgs/pkgs/development/python-modules/parquet/default.nix
T
2025-09-27 16:21:55 +02:00

67 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytestCheckHook,
python-snappy,
pythonOlder,
setuptools,
thriftpy2,
}:
buildPythonPackage rec {
pname = "parquet";
version = "1.3.1";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jcrobak";
repo = "parquet-python";
tag = "v${version}";
hash = "sha256-WVDffYKGsyepK4w1d4KUUMmxB6a6ylTbJvG79Bt5G6o=";
};
patches = [
# Refactor deprecated unittest aliases, https://github.com/jcrobak/parquet-python/pull/83
(fetchpatch {
name = "unittest-aliases.patch";
url = "https://github.com/jcrobak/parquet-python/commit/746bebd1e84d8945a3491e1ae5e44102ff534592.patch";
hash = "sha256-4awxlzman/YMfOz1WYNR+mVn1ixGku9sqlaMJ1QITYs=";
})
];
build-system = [ setuptools ];
dependencies = [
python-snappy
thriftpy2
];
nativeCheckInputs = [ pytestCheckHook ];
disabledTests = [
# Fails with AttributeError
"test_bson"
"testFromExample"
];
disabledTestPaths = [
# Test is outdated
"test/test_read_support.py"
];
pythonImportsCheck = [ "parquet" ];
meta = with lib; {
description = "Python implementation of the parquet columnar file format";
homepage = "https://github.com/jcrobak/parquet-python";
changelog = "https://github.com/jcrobak/parquet-python/releases/tag/${src.tag}";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
mainProgram = "parquet";
};
}