mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
python3Packages.googleapis-common-protos: refactor
Switched to new home at googleapis/google-cloud-python, configured updateScript, added sarahec as maintainer
This commit is contained in:
parent
0717d9d082
commit
e4e80cae4a
1 changed files with 19 additions and 11 deletions
|
@ -1,11 +1,11 @@
|
||||||
{
|
{
|
||||||
lib,
|
lib,
|
||||||
buildPythonPackage,
|
buildPythonPackage,
|
||||||
fetchPypi,
|
fetchFromGitHub,
|
||||||
grpc,
|
grpc,
|
||||||
protobuf,
|
protobuf,
|
||||||
pythonOlder,
|
|
||||||
setuptools,
|
setuptools,
|
||||||
|
nix-update-script,
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
|
@ -13,14 +13,15 @@ buildPythonPackage rec {
|
||||||
version = "1.69.2";
|
version = "1.69.2";
|
||||||
pyproject = true;
|
pyproject = true;
|
||||||
|
|
||||||
disabled = pythonOlder "3.7";
|
src = fetchFromGitHub {
|
||||||
|
owner = "googleapis";
|
||||||
src = fetchPypi {
|
repo = "google-cloud-python";
|
||||||
pname = "googleapis_common_protos";
|
rev = "googleapis-common-protos-v${version}";
|
||||||
inherit version;
|
hash = "sha256-5PzidE1CWN+pt7+gcAtbuXyL/pq6cnn0MCRkBfmeUSw=";
|
||||||
hash = "sha256-PhuQSiejPIIbS3Sf0x0zTAycMOYRMCPUleSJeaPcnF8=";
|
|
||||||
};
|
};
|
||||||
|
|
||||||
|
sourceRoot = "${src.name}/packages/googleapis-common-protos";
|
||||||
|
|
||||||
build-system = [ setuptools ];
|
build-system = [ setuptools ];
|
||||||
|
|
||||||
dependencies = [
|
dependencies = [
|
||||||
|
@ -28,6 +29,13 @@ buildPythonPackage rec {
|
||||||
protobuf
|
protobuf
|
||||||
];
|
];
|
||||||
|
|
||||||
|
passthru.updateScript = nix-update-script {
|
||||||
|
extraArgs = [
|
||||||
|
"--version-regex"
|
||||||
|
"googleapis-common-protos-v([0-9.]+)"
|
||||||
|
];
|
||||||
|
};
|
||||||
|
|
||||||
# does not contain tests
|
# does not contain tests
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
@ -39,11 +47,11 @@ buildPythonPackage rec {
|
||||||
"google.type"
|
"google.type"
|
||||||
];
|
];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = {
|
||||||
description = "Common protobufs used in Google APIs";
|
description = "Common protobufs used in Google APIs";
|
||||||
homepage = "https://github.com/googleapis/python-api-common-protos";
|
homepage = "https://github.com/googleapis/python-api-common-protos";
|
||||||
changelog = "https://github.com/googleapis/python-api-common-protos/releases/tag/v${version}";
|
changelog = "https://github.com/googleapis/python-api-common-protos/releases/tag/v${version}";
|
||||||
license = licenses.asl20;
|
license = lib.licenses.asl20;
|
||||||
maintainers = [ ];
|
maintainers = [ lib.maintainers.sarahec ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue