python3Packages.google-cloud-netapp: build from GitHub
Build from github repo, modernize, enable tests, and add maintainer
This commit is contained in:
@@ -1,15 +1,15 @@
|
||||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchPypi,
|
||||
fetchFromGitHub,
|
||||
google-api-core,
|
||||
google-auth,
|
||||
mock,
|
||||
nix-update-script,
|
||||
proto-plus,
|
||||
protobuf,
|
||||
pytest-asyncio,
|
||||
pytestCheckHook,
|
||||
pythonOlder,
|
||||
setuptools,
|
||||
}:
|
||||
|
||||
@@ -18,14 +18,15 @@ buildPythonPackage rec {
|
||||
version = "0.3.23";
|
||||
pyproject = true;
|
||||
|
||||
disabled = pythonOlder "3.8";
|
||||
|
||||
src = fetchPypi {
|
||||
pname = "google_cloud_netapp";
|
||||
inherit version;
|
||||
hash = "sha256-PP4o+qHCa3Ok6y9Ehyevmq1ac9Wb2zZoEDQgIpm0sr0=";
|
||||
src = fetchFromGitHub {
|
||||
owner = "googleapis";
|
||||
repo = "google-cloud-python";
|
||||
rev = "google-cloud-netapp-v${version}";
|
||||
hash = "sha256-ietiyPCghGUD1jlGdZMhVgVozAlyfdvYgkV6NNlzLQg=";
|
||||
};
|
||||
|
||||
sourceRoot = "${src.name}/packages/google-cloud-netapp";
|
||||
|
||||
build-system = [ setuptools ];
|
||||
|
||||
dependencies = [
|
||||
@@ -46,11 +47,18 @@ buildPythonPackage rec {
|
||||
"google.cloud.netapp_v1"
|
||||
];
|
||||
|
||||
meta = with lib; {
|
||||
passthru.updateScript = nix-update-script {
|
||||
extraArgs = [
|
||||
"--version-regex"
|
||||
"google-cloud-netapp-v([0-9.]+)"
|
||||
];
|
||||
};
|
||||
|
||||
meta = {
|
||||
description = "Python Client for NetApp API";
|
||||
homepage = "https://github.com/googleapis/google-cloud-python/tree/main/packages/google-cloud-netapp";
|
||||
changelog = "https://github.com/googleapis/google-cloud-python/blob/google-cloud-netapp-v${version}/packages/google-cloud-netapp/CHANGELOG.md";
|
||||
license = licenses.asl20;
|
||||
maintainers = [ ];
|
||||
license = lib.licenses.asl20;
|
||||
maintainers = [ lib.maintainers.sarahec ];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user