Files
nixpkgs/pkgs/development/python-modules/proto-plus/default.nix
T

43 lines
839 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
protobuf,
googleapis-common-protos,
pytestCheckHook,
pytz,
}:
buildPythonPackage rec {
pname = "proto-plus";
version = "1.25.0";
pyproject = true;
src = fetchFromGitHub {
owner = "googleapis";
repo = "proto-plus-python";
tag = "v${version}";
hash = "sha256-rRA5t3QPVSeAqy60icrgvYKbvrClv22I3IYxHoMftQ0=";
};
build-system = [ setuptools ];
dependencies = [ protobuf ];
nativeCheckInputs = [
pytestCheckHook
pytz
googleapis-common-protos
];
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 ];
};
}