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