python3Packages.google-auth-httplib2: build from source, add maintainer

Changed files
+14 -12
pkgs
development
python-modules
google-auth-httplib2
+14 -12
pkgs/development/python-modules/google-auth-httplib2/default.nix
···
{
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
];
···
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 ];
};
}