2021-12-26 17:43:05 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, pythonOlder
|
|
|
|
, fetchPypi
|
|
|
|
, typing-extensions
|
|
|
|
, pytestCheckHook
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "avro";
|
2023-07-15 17:15:38 +00:00
|
|
|
version = "1.11.2";
|
2021-12-26 17:43:05 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.6";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-07-15 17:15:38 +00:00
|
|
|
hash = "sha256-U9zVv/zLmnITbwjQsYdxeV6vTu+wKLuq7V9OF4fw4mg=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
|
|
|
|
typing-extensions
|
|
|
|
];
|
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-12-26 17:43:05 +00:00
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Requires network access
|
|
|
|
"test_server_with_path"
|
2023-07-15 17:15:38 +00:00
|
|
|
# AssertionError: 'reader type: null not compatible with writer type: int'
|
|
|
|
"test_schema_compatibility_type_mismatch"
|
2021-12-26 17:43:05 +00:00
|
|
|
];
|
2020-09-25 04:45:31 +00:00
|
|
|
|
2021-12-26 17:43:05 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"avro"
|
|
|
|
];
|
2020-06-15 15:56:04 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
meta = with lib; {
|
2021-12-26 17:43:05 +00:00
|
|
|
description = "Python serialization and RPC framework";
|
|
|
|
homepage = "https://github.com/apache/avro";
|
2023-07-15 17:15:38 +00:00
|
|
|
changelog = "https://github.com/apache/avro/releases/tag/release-${version}";
|
2020-09-25 04:45:31 +00:00
|
|
|
license = licenses.asl20;
|
2021-12-26 17:43:05 +00:00
|
|
|
maintainers = with maintainers; [ zimbatm ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|