depot/third_party/nixpkgs/pkgs/development/python-modules/flatbuffers/default.nix
Default email 5e9e1146e1 Project import generated by Copybara.
GitOrigin-RevId: 18036c0be90f4e308ae3ebcab0e14aae0336fe42
2023-08-05 00:07:22 +02:00

22 lines
553 B
Nix

{ lib
, buildPythonPackage
, flatbuffers
}:
buildPythonPackage rec {
inherit (flatbuffers) pname version src;
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";
};
}