nixpkgs/pkgs/development/python-modules/parquet/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

45 lines
889 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, python-snappy
, thriftpy2
}:
buildPythonPackage rec {
pname = "parquet";
version = "1.3.1";
format = "setuptools";
src = fetchFromGitHub {
owner = "jcrobak";
repo = "parquet-python";
rev = "v${version}";
sha256 = "1ahvg4dz9fzi4vdm9jmslq3v3jahjj17fdcc5fljgcw6h9yxyl2r";
};
propagatedBuildInputs = [
python-snappy
thriftpy2
];
nativeCheckInputs = [
pytestCheckHook
];
disabledTests = [
# Fails with AttributeError
"test_bson"
"testFromExample"
];
pythonImportsCheck = [ "thriftpy2" ];
meta = with lib; {
description = "Python implementation of the parquet columnar file format";
mainProgram = "parquet";
homepage = "https://github.com/jcrobak/parquet-python";
license = licenses.bsd2;
maintainers = with maintainers; [ fab ];
};
}