mirror of
https://github.com/NixOS/nixpkgs.git
synced 2026-09-19 22:30:23 +00:00
54 lines
1.1 KiB
Nix
54 lines
1.1 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
google-auth-oauthlib,
|
|
google-auth,
|
|
pythonOlder,
|
|
setuptools,
|
|
versioneer,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pydata-google-auth";
|
|
version = "1.9.0";
|
|
pyproject = true;
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
repo = "pydata-google-auth";
|
|
owner = "pydata";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-Vel8xSDX0djNwlICXE/ON3G4m0dWmynl8fHfDhaZhbI=";
|
|
};
|
|
|
|
postPatch = ''
|
|
# Remove vendorized versioneer.py
|
|
rm versioneer.py
|
|
'';
|
|
|
|
build-system = [
|
|
setuptools
|
|
versioneer
|
|
];
|
|
|
|
dependencies = [
|
|
google-auth
|
|
google-auth-oauthlib
|
|
];
|
|
|
|
# tests require network access
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "pydata_google_auth" ];
|
|
|
|
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 ];
|
|
};
|
|
}
|