at 23.05-pre 1.6 kB view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, pythonAtLeast 5, python 6, nose 7, mock 8, requests 9, httpretty 10}: 11 12buildPythonPackage rec { 13 pname = "boto"; 14 version = "2.49.0"; 15 16 src = fetchPypi { 17 inherit pname version; 18 sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a"; 19 }; 20 21 patches = [ 22 # fixes hmac tests 23 # https://sources.debian.org/src/python-boto/2.49.0-4/debian/patches/bug-953970_python3.8-compat.patch/ 24 ./bug-953970_python3.8-compat.patch 25 ]; 26 27 # boto is deprecated by upstream as of 2021-05-27 (https://github.com/boto/boto/commit/4980ac58764c3d401cb0b9552101f9c61c18f445) 28 # this patch is a bit simpler than https://github.com/boto/boto/pull/3898 29 # as we don't have to take care of pythonOlder "3.3". 30 postPatch = '' 31 substituteInPlace boto/dynamodb/types.py --replace 'from collections import Mapping' 'from collections.abc import Mapping' 32 substituteInPlace boto/mws/connection.py --replace 'import collections' 'import collections.abc as collections' 33 ''; 34 35 checkPhase = '' 36 ${python.interpreter} tests/test.py default 37 ''; 38 39 checkInputs = [ nose mock ]; 40 propagatedBuildInputs = [ requests httpretty ]; 41 42 meta = with lib; { 43 homepage = "https://github.com/boto/boto"; 44 license = licenses.mit; 45 description = "Python interface to Amazon Web Services"; 46 longDescription = '' 47 The boto module is an integrated interface to current and 48 future infrastructural services offered by Amazon Web 49 Services. This includes S3, SQS, EC2, among others. 50 ''; 51 maintainers = [ maintainers.costrouc ]; 52 }; 53}