depot/third_party/nixpkgs/pkgs/development/python-modules/avro/default.nix
Default email 02cf88bb76 Project import generated by Copybara.
GitOrigin-RevId: c4a0efdd5a728e20791b8d8d2f26f90ac228ee8d
2022-08-12 15:06:08 +03:00

44 lines
816 B
Nix

{ lib
, buildPythonPackage
, pythonOlder
, fetchPypi
, typing-extensions
, pytestCheckHook
}:
buildPythonPackage rec {
pname = "avro";
version = "1.11.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-8SNiPsxkjQ4gzhT47YUWIUDBPMSxCIZdGyUp+/oGwAg=";
};
propagatedBuildInputs = lib.optionals (pythonOlder "3.8") [
typing-extensions
];
checkInputs = [
pytestCheckHook
];
disabledTests = [
# Requires network access
"test_server_with_path"
];
pythonImportsCheck = [
"avro"
];
meta = with lib; {
description = "Python serialization and RPC framework";
homepage = "https://github.com/apache/avro";
license = licenses.asl20;
maintainers = with maintainers; [ zimbatm ];
};
}