diff --git a/pkgs/development/python-modules/google-auth-httplib2/default.nix b/pkgs/development/python-modules/google-auth-httplib2/default.nix index ef1ad2a2fa90..10df29e76d5c 100644 --- a/pkgs/development/python-modules/google-auth-httplib2/default.nix +++ b/pkgs/development/python-modules/google-auth-httplib2/default.nix @@ -1,29 +1,31 @@ { lib, buildPythonPackage, - fetchPypi, + fetchFromGitHub, + setuptools, flask, google-auth, httplib2, mock, pytest-localserver, pytestCheckHook, - pythonOlder, }: buildPythonPackage rec { pname = "google-auth-httplib2"; version = "0.2.0"; - format = "setuptools"; + pyproject = true; - disabled = pythonOlder "3.7"; - - src = fetchPypi { - inherit pname version; - hash = "sha256-OKp7rfSPl08euYYXlOnAyyoFEaTsBnmx+IbRCPVkDgU="; + src = fetchFromGitHub { + owner = "googleapis"; + repo = "google-auth-library-python-httplib2"; + tag = "v${version}"; + sha256 = "sha256-qY00u1srwAw68VXewZDOsWZrtHpi5UoRZfesSY7mTk8="; }; - propagatedBuildInputs = [ + build-system = [ setuptools ]; + + dependencies = [ google-auth httplib2 ]; @@ -37,11 +39,11 @@ buildPythonPackage rec { pytest-localserver ]; - meta = with lib; { + meta = { description = "Google Authentication Library: httplib2 transport"; homepage = "https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2"; changelog = "https://github.com/googleapis/google-auth-library-python-httplib2/blob/v${version}/CHANGELOG.md"; - license = licenses.asl20; - maintainers = [ ]; + license = lib.licenses.asl20; + maintainers = [ lib.maintainers.sarahec ]; }; }