diff --git a/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix new file mode 100644 index 000000000000..f88c5e2cef07 --- /dev/null +++ b/pkgs/development/python-modules/google-cloud-artifact-registry/default.nix @@ -0,0 +1,41 @@ +{ buildPythonPackage +, fetchPypi +, google-api-core +, grpc-google-iam-v1 +, lib +, pytestCheckHook +, pythonOlder +}: + +buildPythonPackage rec { + pname = "google-cloud-artifact-registry"; + version = "1.8.2"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; + + src = fetchPypi { + inherit pname version; + hash = "sha256-FuuxwOMV7IB1drn5hzX7p4BwJYQCUsgnZNVR+E6XKhM="; + }; + + propagatedBuildInputs = [ + google-api-core + grpc-google-iam-v1 + ] ++ google-api-core.optional-dependencies.grpc; + + nativeCheckInputs = [ pytestCheckHook ]; + + pythonImportsCheck = [ + "google.cloud.artifactregistry" + "google.cloud.artifactregistry_v1" + "google.cloud.artifactregistry_v1beta2" + ]; + + meta = with lib; { + description = "Google Cloud Artifact Registry API client library"; + homepage = "https://github.com/googleapis/google-cloud-python"; + license = licenses.asl20; + maintainers = with maintainers; [ samuela ]; + }; +} diff --git a/pkgs/development/python-modules/wandb/default.nix b/pkgs/development/python-modules/wandb/default.nix index 9ccb68067b72..fa57b0072892 100644 --- a/pkgs/development/python-modules/wandb/default.nix +++ b/pkgs/development/python-modules/wandb/default.nix @@ -1,7 +1,10 @@ { lib , stdenv , appdirs +, azure-containerregistry , azure-core +, azure-identity +, azure-storage-blob , bokeh , boto3 , buildPythonPackage @@ -11,6 +14,7 @@ , flask , git , gitpython +, google-cloud-artifact-registry , google-cloud-compute , google-cloud-storage , hypothesis @@ -51,7 +55,7 @@ buildPythonPackage rec { pname = "wandb"; - version = "0.15.3"; + version = "0.15.5"; format = "setuptools"; disabled = pythonOlder "3.6"; @@ -60,7 +64,7 @@ buildPythonPackage rec { owner = pname; repo = pname; rev = "refs/tags/v${version}"; - hash = "sha256-i1Lo6xbkCgRTJwRjk2bXkZ5a/JRUCzFzmEuPQlPvZf4="; + hash = "sha256-etS1NkkskA5Lg/38QIdzCVWgqZpjpT2LwaWF1k7WVXs="; }; patches = [ @@ -94,10 +98,14 @@ buildPythonPackage rec { ]; nativeCheckInputs = [ + azure-containerregistry azure-core + azure-identity + azure-storage-blob bokeh boto3 flask + google-cloud-artifact-registry google-cloud-compute google-cloud-storage hypothesis @@ -213,17 +221,17 @@ buildPythonPackage rec { "tests/pytest_tests/system_tests/test_sweep/test_wandb_agent.py" "tests/pytest_tests/system_tests/test_sweep/test_wandb_sweep.py" "tests/pytest_tests/system_tests/test_system_metrics/test_open_metrics.py" - "tests/pytest_tests/system_tests/tests_launch/test_github_reference.py" - "tests/pytest_tests/system_tests/tests_launch/test_job.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_add.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_cli.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_kubernetes.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_local_container.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_run.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_sweep_cli.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch_sweep.py" - "tests/pytest_tests/system_tests/tests_launch/test_launch.py" - "tests/pytest_tests/system_tests/tests_launch/test_wandb_reference.py" + "tests/pytest_tests/system_tests/test_launch/test_github_reference.py" + "tests/pytest_tests/system_tests/test_launch/test_job.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_add.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_cli.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_kubernetes.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_local_container.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_run.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_sweep_cli.py" + "tests/pytest_tests/system_tests/test_launch/test_launch_sweep.py" + "tests/pytest_tests/system_tests/test_launch/test_launch.py" + "tests/pytest_tests/system_tests/test_launch/test_wandb_reference.py" # Tries to access /homeless-shelter "tests/pytest_tests/unit_tests/test_tables.py" diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 0df2a7166378..ea8f915774c0 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -4281,6 +4281,8 @@ self: super: with self; { google-cloud-appengine-logging = callPackage ../development/python-modules/google-cloud-appengine-logging { }; + google-cloud-artifact-registry = callPackage ../development/python-modules/google-cloud-artifact-registry { }; + google-cloud-asset = callPackage ../development/python-modules/google-cloud-asset { }; google-cloud-audit-log = callPackage ../development/python-modules/google-cloud-audit-log { };