49 lines
1015 B
Nix
49 lines
1015 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
protobuf,
|
|
googleapis-common-protos,
|
|
pytestCheckHook,
|
|
pytz,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "proto-plus";
|
|
version = "1.26.1";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "googleapis";
|
|
repo = "proto-plus-python";
|
|
tag = "v${version}";
|
|
hash = "sha256-7FonHHXpgJC0vg9Y26bqz0g1NmLWwaZWyFZ0kv7PjY8=";
|
|
};
|
|
|
|
build-system = [ setuptools ];
|
|
|
|
dependencies = [ protobuf ];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
pytz
|
|
googleapis-common-protos
|
|
];
|
|
|
|
pytestFlagsArray = [
|
|
# pkg_resources is deprecated as an API. See https://setuptools.pypa.io/en/latest/pkg_resources.html
|
|
"-W"
|
|
"ignore::DeprecationWarning"
|
|
];
|
|
|
|
pythonImportsCheck = [ "proto" ];
|
|
|
|
meta = with lib; {
|
|
description = "Beautiful, idiomatic protocol buffers in Python";
|
|
homepage = "https://github.com/googleapis/proto-plus-python";
|
|
license = licenses.asl20;
|
|
maintainers = with maintainers; [ ruuda ];
|
|
};
|
|
}
|