1{
2 lib,
3 buildPythonPackage,
4 flatbuffers,
5}:
6
7buildPythonPackage rec {
8 inherit (flatbuffers) pname version src;
9
10 format = "setuptools";
11
12 sourceRoot = "${src.name}/python";
13
14 # flatbuffers needs VERSION environment variable for setting the correct
15 # version, otherwise it uses the current date.
16 VERSION = version;
17
18 pythonImportsCheck = [ "flatbuffers" ];
19
20 meta = flatbuffers.meta // {
21 description = "Python runtime library for use with the Flatbuffers serialization format";
22 maintainers = with lib.maintainers; [ wulfsta ];
23 mainProgram = "flatc";
24 };
25}