depot/third_party/nixpkgs/pkgs/development/python-modules/flatbuffers/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

25 lines
584 B
Nix

{
lib,
buildPythonPackage,
flatbuffers,
}:
buildPythonPackage rec {
inherit (flatbuffers) pname version src;
format = "setuptools";
sourceRoot = "${src.name}/python";
# flatbuffers needs VERSION environment variable for setting the correct
# version, otherwise it uses the current date.
VERSION = version;
pythonImportsCheck = [ "flatbuffers" ];
meta = flatbuffers.meta // {
description = "Python runtime library for use with the Flatbuffers serialization format";
maintainers = with lib.maintainers; [ wulfsta ];
mainProgram = "flatc";
};
}