2021-02-05 17:12:51 +00:00
|
|
|
{ lib
|
2020-11-19 00:13:47 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, flatbuffers
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
inherit (flatbuffers) pname version src;
|
|
|
|
|
2024-01-02 11:29:13 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
2023-08-04 22:07:22 +00:00
|
|
|
sourceRoot = "${src.name}/python";
|
2020-11-19 00:13:47 +00:00
|
|
|
|
2021-01-15 22:18:51 +00:00
|
|
|
# flatbuffers needs VERSION environment variable for setting the correct
|
|
|
|
# version, otherwise it uses the current date.
|
2023-07-15 17:15:38 +00:00
|
|
|
VERSION = version;
|
2021-01-15 22:18:51 +00:00
|
|
|
|
2020-11-19 00:13:47 +00:00
|
|
|
pythonImportsCheck = [ "flatbuffers" ];
|
|
|
|
|
|
|
|
meta = flatbuffers.meta // {
|
|
|
|
description = "Python runtime library for use with the Flatbuffers serialization format";
|
2021-02-05 17:12:51 +00:00
|
|
|
maintainers = with lib.maintainers; [ wulfsta ];
|
2022-04-27 09:35:20 +00:00
|
|
|
mainProgram = "flatc";
|
2020-11-19 00:13:47 +00:00
|
|
|
};
|
|
|
|
}
|