2021-01-24 00:29:22 +00:00
|
|
|
{ lib
|
2020-11-13 05:49:05 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, flatbuffers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
inherit (flatbuffers) pname version src;
|
|
|
|
|
|
|
|
sourceRoot = "source/python";
|
|
|
|
|
2021-01-10 10:50:33 +00:00
|
|
|
# flatbuffers needs VERSION environment variable for setting the correct
|
|
|
|
# version, otherwise it uses the current date.
|
|
|
|
VERSION = "${version}";
|
|
|
|
|
2020-11-13 05:49:05 +00:00
|
|
|
pythonImportsCheck = [ "flatbuffers" ];
|
|
|
|
|
|
|
|
meta = flatbuffers.meta // {
|
|
|
|
description = "Python runtime library for use with the Flatbuffers serialization format";
|
2021-01-24 00:29:22 +00:00
|
|
|
maintainers = with lib.maintainers; [ wulfsta ];
|
2020-11-13 05:49:05 +00:00
|
|
|
};
|
|
|
|
}
|