1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, pytestCheckHook 5, python-snappy 6, thriftpy2 7}: 8 9buildPythonPackage rec { 10 pname = "parquet"; 11 version = "1.3.1"; 12 13 src = fetchFromGitHub { 14 owner = "jcrobak"; 15 repo = "parquet-python"; 16 rev = "v${version}"; 17 sha256 = "1ahvg4dz9fzi4vdm9jmslq3v3jahjj17fdcc5fljgcw6h9yxyl2r"; 18 }; 19 20 propagatedBuildInputs = [ 21 python-snappy 22 thriftpy2 23 ]; 24 25 nativeCheckInputs = [ 26 pytestCheckHook 27 ]; 28 29 disabledTests = [ 30 # Fails with AttributeError 31 "test_bson" 32 "testFromExample" 33 ]; 34 35 pythonImportsCheck = [ "thriftpy2" ]; 36 37 meta = with lib; { 38 description = "Python implementation of the parquet columnar file format"; 39 homepage = "https://github.com/jcrobak/parquet-python"; 40 license = licenses.bsd2; 41 maintainers = with maintainers; [ fab ]; 42 }; 43}