17 buildPythonPackage rec {
20 format = "setuptools";
22 disabled = pythonOlder "3.6";
24 src = fetchFromGitHub {
27 rev = "refs/tags/${version}";
28 hash = "sha256-UWvNEi6vzQknUws+b7UCFUajMUJkfnQkfBeCR0XfqQY=";
32 export FASTAVRO_USE_CYTHON=1
35 nativeBuildInputs = [ cython ];
37 passthru.optional-dependencies = {
60 ] ++ lib.flatten (lib.attrValues passthru.optional-dependencies);
62 # Fails with "AttributeError: module 'fastavro._read_py' has no attribute
63 # 'CYTHON_MODULE'." Doesn't appear to be serious. See https://github.com/fastavro/fastavro/issues/112#issuecomment-387638676.
64 disabledTests = [ "test_cython_python" ];
66 # CLI tests are broken on Python 3.8. See https://github.com/fastavro/fastavro/issues/558.
67 disabledTestPaths = lib.optionals isPy38 [ "tests/test_main_cli.py" ];
69 pythonImportsCheck = [ "fastavro" ];
72 description = "Fast read/write of AVRO files";
73 mainProgram = "fastavro";
74 homepage = "https://github.com/fastavro/fastavro";
75 changelog = "https://github.com/fastavro/fastavro/blob/${version}/ChangeLog";
76 license = licenses.mit;
77 maintainers = with maintainers; [ samuela ];