1{ lib
2, buildPythonPackage
3, pythonOlder
4, fetchPypi
5, typing-extensions
6, pytestCheckHook
7}:
8
9buildPythonPackage rec {
10 pname = "avro";
11 version = "1.11.1";
12 format = "setuptools";
13
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 inherit pname version;
18 sha256 = "sha256-8SNiPsxkjQ4gzhT47YUWIUDBPMSxCIZdGyUp+/oGwAg=";
19 };
20
21 propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
22 typing-extensions
23 ];
24
25 checkInputs = [
26 pytestCheckHook
27 ];
28
29 disabledTests = [
30 # Requires network access
31 "test_server_with_path"
32 ];
33
34 pythonImportsCheck = [
35 "avro"
36 ];
37
38 meta = with lib; {
39 description = "Python serialization and RPC framework";
40 homepage = "https://github.com/apache/avro";
41 license = licenses.asl20;
42 maintainers = with maintainers; [ zimbatm ];
43 };
44}