depot/third_party/nixpkgs/pkgs/development/python-modules/flatbuffers/default.nix
Default email a5adf1ddd8 Project import generated by Copybara.
GitOrigin-RevId: b3616bd96400ce0252c241d76fcafb64389defc6
2021-01-15 23:18:51 +01:00

21 lines
536 B
Nix

{ stdenv
, 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 stdenv.lib.maintainers; [ wulfsta ];
};
}