Merge pull request #307727 from fabaff/parquet-bump
python312Packages.parquet: add patch for deprecated unittest aliases
This commit is contained in:
@@ -1,31 +1,46 @@
|
||||
{ lib
|
||||
, buildPythonPackage
|
||||
, fetchFromGitHub
|
||||
, pytestCheckHook
|
||||
, python-snappy
|
||||
, thriftpy2
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
pytestCheckHook,
|
||||
python-snappy,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
thriftpy2,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "parquet";
|
||||
version = "1.3.1";
|
||||
format = "setuptools";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "jcrobak";
|
||||
repo = "parquet-python";
|
||||
rev = "v${version}";
|
||||
sha256 = "1ahvg4dz9fzi4vdm9jmslq3v3jahjj17fdcc5fljgcw6h9yxyl2r";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-WVDffYKGsyepK4w1d4KUUMmxB6a6ylTbJvG79Bt5G6o=";
|
||||
};
|
||||
|
||||
propagatedBuildInputs = [
|
||||
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
|
||||
];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
disabledTests = [
|
||||
# Fails with AttributeError
|
||||
@@ -37,9 +52,10 @@ buildPythonPackage rec {
|
||||
|
||||
meta = with lib; {
|
||||
description = "Python implementation of the parquet columnar file format";
|
||||
mainProgram = "parquet";
|
||||
homepage = "https://github.com/jcrobak/parquet-python";
|
||||
changelog = "https://github.com/jcrobak/parquet-python/releases/tag/v${version}";
|
||||
license = licenses.bsd2;
|
||||
maintainers = with maintainers; [ fab ];
|
||||
mainProgram = "parquet";
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user