mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 13:40:28 +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,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
grpc,
|
||||
protobuf,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
nix-update-script,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
|
@ -13,14 +13,15 @@ buildPythonPackage rec {
|
|||
version = "1.69.2";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.7";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "googleapis_common_protos";
|
||||
inherit version;
|
||||
hash = "sha256-PhuQSiejPIIbS3Sf0x0zTAycMOYRMCPUleSJeaPcnF8=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "googleapis";
|
||||
repo = "google-cloud-python";
|
||||
rev = "googleapis-common-protos-v${version}";
|
||||
hash = "sha256-5PzidE1CWN+pt7+gcAtbuXyL/pq6cnn0MCRkBfmeUSw=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/googleapis-common-protos";
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
|
@ -28,6 +29,13 @@ buildPythonPackage rec {
|
|||
protobuf
|
||||
];
|
||||
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"googleapis-common-protos-v([0-9.]+)"
|
||||
];
|
||||
};
|
||||
|
||||
# does not contain tests
|
||||
doCheck = false;
|
||||
|
||||
|
@ -39,11 +47,11 @@ buildPythonPackage rec {
|
|||
"google.type"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
meta = {
|
||||
description = "Common protobufs used in Google APIs";
|
||||
homepage = "https://github.com/googleapis/python-api-common-protos";
|
||||
changelog = "https://github.com/googleapis/python-api-common-protos/releases/tag/v${version}";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.sarahec ];
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue