ae91cbe6cc
GitOrigin-RevId: 536fe36e23ab0fc8b7f35c24603422eee9fc17a2
21 lines
526 B
Nix
21 lines
526 B
Nix
{ 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 ];
|
|
};
|
|
}
|