19 buildPythonPackage rec {
24 disabled = pythonOlder "3.6";
26 src = fetchFromGitHub {
29 rev = "refs/tags/${version}";
30 hash = "sha256-hKhwQqNJ+QvYf4x9FesNOPg36m8zC6D6dmlhANXCcsk=";
34 export FASTAVRO_USE_CYTHON=1
42 optional-dependencies = {
49 zstandard = [ zstandard ];
59 ] ++ lib.flatten (lib.attrValues optional-dependencies);
61 # Fails with "AttributeError: module 'fastavro._read_py' has no attribute
62 # 'CYTHON_MODULE'." Doesn't appear to be serious. See https://github.com/fastavro/fastavro/issues/112#issuecomment-387638676.
63 disabledTests = [ "test_cython_python" ];
65 # CLI tests are broken on Python 3.8. See https://github.com/fastavro/fastavro/issues/558.
66 disabledTestPaths = lib.optionals isPy38 [ "tests/test_main_cli.py" ];
68 pythonImportsCheck = [ "fastavro" ];
71 description = "Fast read/write of AVRO files";
72 mainProgram = "fastavro";
73 homepage = "https://github.com/fastavro/fastavro";
74 changelog = "https://github.com/fastavro/fastavro/blob/${version}/ChangeLog";
75 license = licenses.mit;
76 maintainers = with maintainers; [ samuela ];