567e8dfd8e
This commit was created by a combination of scripts and tools: - an ast-grep script to prefix things in meta with `lib.`, - a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and - regular nixfmt. Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
47 lines
1.1 KiB
Nix
47 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
pythonOlder,
|
|
setuptools,
|
|
fetchPypi,
|
|
typing-extensions,
|
|
pytest7CheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "avro";
|
|
version = "1.12.1";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xbjdLdTBCBbw3BJ8wpz9Q7XkBc9+aEDolGCgJL89CY0=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = lib.optionals (pythonOlder "3.8") [ typing-extensions ];
|
|
|
|
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";
|
|
};
|
|
}
|