mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-22 21:53:32 +00:00
32492d9189
Revert "pythonPackages.boto3: 1.7.84 -> 1.8.4" This reverts commit 06b37899300e0800e7a0ea632fcb5bf0f291e003. Revert "python: botocore: 1.11.1 -> 1.11.4" This reverts commit 3b0242d4c014a440b8c1c58cae812dc84496cc95. Revert "python: botocore: 1.10.75 -> 1.11.1" This reverts commit996fd79967
. Revert "awscli: 1.16.1 -> 1.16.4" This reverts commit 4880df9078bf024fd5a98afa8c6f28833e13f3d3. Revert "awscli: 1.15.66 -> 1.16.1" This reverts commit6923bc8d23
. awscli: fix build pythonPackages.botocore: 1.10.75 -> 1.10.84
50 lines
1.2 KiB
Nix
50 lines
1.2 KiB
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, botocore
|
|
, jmespath
|
|
, s3transfer
|
|
, futures
|
|
, docutils
|
|
, nose
|
|
, mock
|
|
, isPy3k
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "boto3";
|
|
version = "1.7.84";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "boto";
|
|
repo = "boto3";
|
|
rev = version;
|
|
sha256 = "0d9kqjqmnn53p1xpmdbbjxcxv2482yx3vjhxw8izp0mpq58i5c14";
|
|
};
|
|
|
|
propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ];
|
|
checkInputs = [ docutils nose mock ];
|
|
|
|
checkPhase = ''
|
|
runHook preCheck
|
|
# This method is not in mock. It might have appeared in some versions.
|
|
sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \
|
|
tests/unit/resources/test_factory.py
|
|
nosetests -d tests/unit --verbose
|
|
runHook postCheck
|
|
'';
|
|
|
|
# Network access
|
|
doCheck = false;
|
|
|
|
meta = {
|
|
homepage = https://github.com/boto/boto3;
|
|
license = lib.licenses.asl20;
|
|
description = "AWS SDK for Python";
|
|
longDescription = ''
|
|
Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for
|
|
Python, which allows Python developers to write software that makes use of
|
|
services like Amazon S3 and Amazon EC2.
|
|
'';
|
|
};
|
|
} |