mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-26 07:34:11 +00:00
23 lines
553 B
Nix
23 lines
553 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, flatbuffers
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
inherit (flatbuffers) pname version src;
|
|
|
|
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";
|
|
};
|
|
}
|