mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-01-09 06:23:36 +00:00
33afbf39f6
checkInputs used to be added to nativeBuildInputs. Now we have nativeCheckInputs to do that instead. Doing this treewide change allows to keep hashes identical to before the introduction of nativeCheckInputs.
47 lines
975 B
Nix
47 lines
975 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, oauth2client
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
, pyu2f
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "google-reauth";
|
|
version = "0.1.1";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "Google";
|
|
repo = "google-reauth-python";
|
|
rev = "refs/tags/${version}";
|
|
hash = "sha256-J7GVh+iY+69rFzf4hN/KLFZMZ1/S3CL5TZ7SsP5Oy3g=";
|
|
};
|
|
|
|
propagatedBuildInputs = [
|
|
oauth2client
|
|
pyu2f
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"google_reauth"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Auth plugin allowing use the use of OAuth 2.0 credentials for Google Cloud Storage";
|
|
homepage = "https://github.com/Google/google-reauth-python";
|
|
changelog = "https://github.com/google/google-reauth-python/releases/tag/${version}";
|
|
license = with licenses; [ asl20 ];
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|