at 18.03-beta 1.2 kB view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, botocore 5, jmespath 6, s3transfer 7, futures 8, docutils 9, nose 10, mock 11, isPy3k 12}: 13 14buildPythonPackage rec { 15 pname = "boto3"; 16 version = "1.4.8"; 17 18 src = fetchFromGitHub { 19 owner = "boto"; 20 repo = "boto3"; 21 rev = version; 22 sha256 = "11ysd7a9l5y98q7b7az56phsj2m7w90abf4jabwrknp2c43sq9bi"; 23 }; 24 25 propagatedBuildInputs = [ botocore jmespath s3transfer ] ++ lib.optionals (!isPy3k) [ futures ]; 26 checkInputs = [ docutils nose mock ]; 27 28 checkPhase = '' 29 runHook preCheck 30 # This method is not in mock. It might have appeared in some versions. 31 sed -i 's/action.assert_called_once()/self.assertEqual(action.call_count, 1)/' \ 32 tests/unit/resources/test_factory.py 33 nosetests -d tests/unit --verbose 34 runHook postCheck 35 ''; 36 37 # Network access 38 doCheck = false; 39 40 meta = { 41 homepage = https://github.com/boto/boto3; 42 license = lib.licenses.asl20; 43 description = "AWS SDK for Python"; 44 longDescription = '' 45 Boto3 is the Amazon Web Services (AWS) Software Development Kit (SDK) for 46 Python, which allows Python developers to write software that makes use of 47 services like Amazon S3 and Amazon EC2. 48 ''; 49 }; 50}