Skip to content

Commit 447ec64

Browse files
committed
python3Packages.google-cloud-error-reporting: relax dependency on protobuf
1 parent 0f88b38 commit 447ec64

File tree

1 file changed

+20
-14
lines changed
  • pkgs/development/python-modules/google-cloud-error-reporting

1 file changed

+20
-14
lines changed

pkgs/development/python-modules/google-cloud-error-reporting/default.nix

Lines changed: 20 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,40 @@
11
{
22
lib,
33
buildPythonPackage,
4-
fetchPypi,
4+
fetchFromGitHub,
5+
6+
# build-system
7+
setuptools,
8+
9+
# dependencies
510
google-api-core,
611
google-cloud-logging,
7-
google-cloud-testutils,
8-
mock,
912
proto-plus,
1013
protobuf,
14+
15+
# testing
16+
google-cloud-testutils,
17+
mock,
1118
pytest-asyncio,
1219
pytestCheckHook,
13-
pythonOlder,
14-
setuptools,
1520
}:
1621

1722
buildPythonPackage rec {
1823
pname = "google-cloud-error-reporting";
1924
version = "1.11.1";
2025
pyproject = true;
2126

22-
disabled = pythonOlder "3.7";
23-
24-
src = fetchPypi {
25-
pname = "google_cloud_error_reporting";
26-
inherit version;
27-
hash = "sha256-1ir8o3jwzmfi7E8QPTn3E6RGtTOL9KM05NRaMRYzh5A=";
27+
src = fetchFromGitHub {
28+
owner = "googleapis";
29+
repo = "python-error-reporting";
30+
tag = "v${version}";
31+
hash = "sha256-z1ogY4W4RGKv0h2jW0jVpIHUY1X3P0Vw++3jYtnYTRA=";
2832
};
2933

3034
build-system = [ setuptools ];
3135

36+
pythonRelaxDeps = [ "protobuf" ];
37+
3238
dependencies = [
3339
google-api-core
3440
google-cloud-logging
@@ -61,11 +67,11 @@ buildPythonPackage rec {
6167
"google.cloud.errorreporting_v1beta1"
6268
];
6369

64-
meta = with lib; {
70+
meta = {
6571
description = "Stackdriver Error Reporting API client library";
6672
homepage = "https://github.com/googleapis/python-error-reporting";
6773
changelog = "https://github.com/googleapis/python-error-reporting/blob/v${version}/CHANGELOG.md";
68-
license = licenses.asl20;
69-
maintainers = [ ];
74+
license = lib.licenses.asl20;
75+
maintainers = [ lib.maintainers.sarahec ];
7076
};
7177
}

0 commit comments

Comments
 (0)