mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
cf37992603
add pythonImportsCheck and testers.testVersion started failing on staging-next with `No module named pip` and after adding pip aws-google-auth> ir_d = dist.fetch_build_eggs(dist.install_requires) aws-google-auth> WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'NewConnectionError('<pip._vendor.urllib3.connection.HTTPSConnection object at 0x7ffff5542c10>: Failed to establish a new connection: [Errno -3] Temporary failure in name resolution')': /simple/urllib3/ aws-google-auth> ERROR: Could not find a version that satisfies the requirement urllib3<1.27,>=1.25.4 (from versions: none)
84 lines
1.6 KiB
Nix
84 lines
1.6 KiB
Nix
{ lib
|
|
, buildPythonApplication
|
|
, fetchFromGitHub
|
|
, beautifulsoup4
|
|
, boto3
|
|
, configparser
|
|
, filelock
|
|
, keyring
|
|
, keyrings-alt
|
|
, lxml
|
|
, pillow
|
|
, requests
|
|
, six
|
|
, tabulate
|
|
, tzlocal
|
|
, nose
|
|
, mock
|
|
, setuptools
|
|
, aws-google-auth
|
|
, testers
|
|
, withU2F ? false, python-u2flib-host
|
|
}:
|
|
|
|
buildPythonApplication rec {
|
|
pname = "aws-google-auth";
|
|
version = "0.0.38";
|
|
|
|
pyproject = true;
|
|
|
|
# Pypi doesn't ship the tests, so we fetch directly from GitHub
|
|
# https://github.com/cevoaustralia/aws-google-auth/issues/120
|
|
src = fetchFromGitHub {
|
|
owner = "cevoaustralia";
|
|
repo = "aws-google-auth";
|
|
rev = "refs/tags/${version}";
|
|
sha256 = "sha256-/Xe4RDA9sBEsBBV1VP91VX0VfO8alK8L70m9WrB7qu4=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
setuptools
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
beautifulsoup4
|
|
boto3
|
|
configparser
|
|
filelock
|
|
keyring
|
|
keyrings-alt
|
|
lxml
|
|
pillow
|
|
requests
|
|
six
|
|
tabulate
|
|
tzlocal
|
|
] ++ lib.optional withU2F python-u2flib-host;
|
|
|
|
nativeCheckInputs = [
|
|
mock
|
|
nose
|
|
];
|
|
|
|
preCheck = ''
|
|
export HOME=$TMPDIR
|
|
'';
|
|
|
|
# with pyproject the tests aren't attempted
|
|
# without pyproject the tests try to access internet
|
|
doCheck = false;
|
|
|
|
pythonImportsCheck = [ "aws_google_auth" ];
|
|
|
|
passthru.tests.version = testers.testVersion {
|
|
package = aws-google-auth;
|
|
};
|
|
|
|
meta = with lib; {
|
|
description = "Acquire AWS STS (temporary) credentials via Google Apps SAML Single Sign On";
|
|
homepage = "https://github.com/cevoaustralia/aws-google-auth";
|
|
maintainers = [ maintainers.marsam ];
|
|
license = licenses.mit;
|
|
};
|
|
}
|