16 buildPythonPackage rec {
19 format = "setuptools";
21 disabled = pythonOlder "3.6";
23 src = fetchFromGitHub {
26 rev = "refs/tags/${version}";
27 hash = "sha256-W+fFZAQU7W6gDqB6LOrG8se6mBATFZWmepTt1HSphbE=";
31 export FASTAVRO_USE_CYTHON=1
34 nativeBuildInputs = [ cython ];
36 passthru.optional-dependencies = {
58 ] ++ lib.flatten (builtins.attrValues passthru.optional-dependencies);
60 # Fails with "AttributeError: module 'fastavro._read_py' has no attribute
61 # 'CYTHON_MODULE'." Doesn't appear to be serious. See https://github.com/fastavro/fastavro/issues/112#issuecomment-387638676.
62 disabledTests = [ "test_cython_python" ];
64 # CLI tests are broken on Python 3.8. See https://github.com/fastavro/fastavro/issues/558.
65 disabledTestPaths = lib.optionals isPy38 [ "tests/test_main_cli.py" ];
67 pythonImportsCheck = [ "fastavro" ];
70 description = "Fast read/write of AVRO files";
71 homepage = "https://github.com/fastavro/fastavro";
72 changelog = "https://github.com/fastavro/fastavro/blob/${version}/ChangeLog";
73 license = licenses.mit;
74 maintainers = with maintainers; [ samuela ];