nixpkgs/pkgs/development/python-modules/avro/default.nix
2026-01-17 16:37:43 +01:00

40 lines
933 B
Nix

{
lib,
buildPythonPackage,
setuptools,
fetchPypi,
pytest7CheckHook,
}:
buildPythonPackage rec {
pname = "avro";
version = "1.12.1";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-xbjdLdTBCBbw3BJ8wpz9Q7XkBc9+aEDolGCgJL89CY0=";
};
build-system = [ setuptools ];
nativeCheckInputs = [ pytest7CheckHook ];
disabledTests = [
# Requires network access
"test_server_with_path"
# AssertionError: 'reader type: null not compatible with writer type: int'
"test_schema_compatibility_type_mismatch"
];
pythonImportsCheck = [ "avro" ];
meta = {
description = "Python serialization and RPC framework";
homepage = "https://github.com/apache/avro";
changelog = "https://github.com/apache/avro/releases/tag/release-${version}";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ zimbatm ];
mainProgram = "avro";
};
}