504525a148
GitOrigin-RevId: bd645e8668ec6612439a9ee7e71f7eac4099d4f6
24 lines
579 B
Nix
24 lines
579 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, flatbuffers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (flatbuffers) pname version src;
|
|
|
|
format = "setuptools";
|
|
|
|
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";
|
|
};
|
|
}
|