Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.5 kB · 63 lines
Nix
at flake-libs
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364{ lib, stdenv, buildPythonPackage, fetchPypi, setuptools, google-auth, requests-oauthlib, click, mock, pytestCheckHook,}:
buildPythonPackage rec { pname = "google-auth-oauthlib"; version = "1.2.2"; pyproject = true;
src = fetchPypi { pname = "google_auth_oauthlib"; inherit version; hash = "sha256-EQRvuNM0iyljAt2Tms6K8KckBC6AKcG4cth/q8n0FoQ="; };
build-system = [ setuptools ];
dependencies = [ google-auth requests-oauthlib ];
optional-dependencies = { tool = [ click ]; };
nativeCheckInputs = [ mock pytestCheckHook ] ++ optional-dependencies.tool;
disabledTests = [ # Flaky test. See https://github.com/NixOS/nixpkgs/issues/288424#issuecomment-1941609973. "test_run_local_server_occupied_port" ] ++ lib.optionals stdenv.hostPlatform.isDarwin [ # This test fails if the hostname is not associated with an IP (e.g., in `/etc/hosts`). "test_run_local_server_bind_addr" ];
pythonImportsCheck = [ "google_auth_oauthlib" ];
__darwinAllowLocalNetworking = true;
meta = { description = "Google Authentication Library: oauthlib integration"; homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-oauthlib"; changelog = "https://github.com/googleapis/google-auth-library-python-oauthlib/blob/v${version}/CHANGELOG.md"; license = lib.licenses.asl20; maintainers = with lib.maintainers; [ terlar ]; mainProgram = "google-oauthlib-tool"; };}