1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, typing-extensions
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "avro";
11 version = "1.11.2";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 hash = "sha256-U9zVv/zLmnITbwjQsYdxeV6vTu+wKLuq7V9OF4fw4mg=";
19 };
20
21 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
22 typing-extensions
23 ];
24
25 nativeCheckInputs = [
26 pytestCheckHook
27 ];
28
29 disabledTests = [
30 # Requires network access
31 "test_server_with_path"
32 # AssertionError: 'reader type: null not compatible with writer type: int'
33 "test_schema_compatibility_type_mismatch"
34 ];
35
36 pythonImportsCheck = [
37 "avro"
38 ];
39
40 meta = with lib; {
41 description = "Python serialization and RPC framework";
42 homepage = "https://github.com/apache/avro";
43 changelog = "https://github.com/apache/avro/releases/tag/release-${version}";
44 license = licenses.asl20;
45 maintainers = with maintainers; [ zimbatm ];
46 };
47}