summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/flatbuffers/default.nix
blob: 3575f1c361372d0742a40a3f8a58ff8e4bed3e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
{ lib
, buildPythonPackage
, flatbuffers
}:

buildPythonPackage rec {
  inherit (flatbuffers) pname version src;

  sourceRoot = "source/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";
  };
}