push sheeet
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s

This commit is contained in:
Dark Steveneq
2025-10-09 14:15:47 +02:00
commit 646b892680
49168 changed files with 5897842 additions and 0 deletions

View File

@@ -0,0 +1,79 @@
{
buildPythonPackage,
cython,
fetchFromGitHub,
isPy38,
lib,
lz4,
numpy,
pandas,
pytestCheckHook,
python-dateutil,
cramjam,
pythonOlder,
setuptools,
zlib-ng,
zstandard,
}:
buildPythonPackage rec {
pname = "fastavro";
version = "1.12.0";
pyproject = true;
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
owner = "fastavro";
repo = "fastavro";
tag = version;
hash = "sha256-r/dNXBmsNnvYbvXdZC5++1B9884dQV76pLga6u3XtO8=";
};
preBuild = ''
export FASTAVRO_USE_CYTHON=1
'';
build-system = [
cython
setuptools
];
optional-dependencies = {
codecs = [
cramjam
lz4
zstandard
];
snappy = [ cramjam ];
zstandard = [ zstandard ];
lz4 = [ lz4 ];
};
nativeCheckInputs = [
numpy
pandas
pytestCheckHook
python-dateutil
zlib-ng
]
++ lib.flatten (lib.attrValues optional-dependencies);
# Fails with "AttributeError: module 'fastavro._read_py' has no attribute
# 'CYTHON_MODULE'." Doesn't appear to be serious. See https://github.com/fastavro/fastavro/issues/112#issuecomment-387638676.
disabledTests = [ "test_cython_python" ];
# CLI tests are broken on Python 3.8. See https://github.com/fastavro/fastavro/issues/558.
disabledTestPaths = lib.optionals isPy38 [ "tests/test_main_cli.py" ];
pythonImportsCheck = [ "fastavro" ];
meta = with lib; {
description = "Fast read/write of AVRO files";
mainProgram = "fastavro";
homepage = "https://github.com/fastavro/fastavro";
changelog = "https://github.com/fastavro/fastavro/blob/${src.tag}/ChangeLog";
license = licenses.mit;
maintainers = with maintainers; [ samuela ];
};
}