a5adf1ddd8
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
21 lines
536 B
Nix
21 lines
536 B
Nix
{ stdenv
|
|
, 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 stdenv.lib.maintainers; [ wulfsta ];
|
|
};
|
|
}
|