blob: f4c4f0a4c53535439498e63aef5aeeb287afb696 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
fetchpatch,
pytestCheckHook,
python-snappy,
setuptools,
thriftpy2,
}:
buildPythonPackage rec {
pname = "parquet";
version = "1.3.1";
pyproject = true;
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 = {
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 = lib.licenses.bsd2;
maintainers = with lib.maintainers; [ fab ];
mainProgram = "parquet";
};
}
|