Merge pull request #326737 from fabaff/pydata-google-auth-fix

python312Packages.pydata-google-auth: remove vendorized versioneer.py
This commit is contained in:
Fabian Affolter 2024-07-13 22:16:37 +02:00 committed by GitHub
commit 835c2eb07a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2,26 +2,38 @@
lib,
buildPythonPackage,
fetchFromGitHub,
google-auth,
google-auth-oauthlib,
google-auth,
pythonOlder,
setuptools,
versioneer,
}:
buildPythonPackage rec {
pname = "pydata-google-auth";
version = "1.8.2";
format = "setuptools";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
repo = pname;
repo = "pydata-google-auth";
owner = "pydata";
rev = "refs/tags/${version}";
hash = "sha256-Wo+tXbzOuz/cW8GuWoSxLA/Lr2S9NMdePa8tIV39mbY=";
};
nativeBuildInputs = [ setuptools ];
postPatch = ''
# Remove vendorized versioneer.py
rm versioneer.py
'';
propagatedBuildInputs = [
build-system = [
setuptools
versioneer
];
dependencies = [
google-auth
google-auth-oauthlib
];
@ -34,6 +46,7 @@ buildPythonPackage rec {
meta = with lib; {
description = "Helpers for authenticating to Google APIs";
homepage = "https://github.com/pydata/pydata-google-auth";
changelog = "https://github.com/pydata/pydata-google-auth/releases/tag/${version}";
license = licenses.bsd3;
maintainers = with maintainers; [ cpcloud ];
};