522b294896
in 5.XX.X the setup.py we used before from the repo got moved and the pypi source distribution doesn't seemingly require any packages to compile or supports the cpp implementation flag. see https://github.com/protocolbuffers/protobuf/commit/5722aeffcad72e9a335a3ec7985858dfa31477be for more details
40 lines
856 B
Nix
40 lines
856 B
Nix
{
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
lib,
|
|
setuptools,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "protobuf";
|
|
version = "5.27.2";
|
|
pyproject = true;
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-8+ze8ia5r4VgdfKCJ/8skM46WU0JLDm+5VE1c/JeJxQ=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
# the pypi source archive does not ship tests
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [
|
|
"google.protobuf"
|
|
"google.protobuf.compiler"
|
|
"google.protobuf.internal"
|
|
"google.protobuf.pyext"
|
|
"google.protobuf.testdata"
|
|
"google.protobuf.util"
|
|
"google._upb._message"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Protocol Buffers are Google's data interchange format";
|
|
homepage = "https://developers.google.com/protocol-buffers/";
|
|
license = licenses.bsd3;
|
|
maintainers = with maintainers; [ SuperSandro2000 ];
|
|
};
|
|
}
|