2021-10-08 15:17:17 +00:00
|
|
|
{ lib
|
2020-04-24 23:36:52 +00:00
|
|
|
, buildPythonPackage
|
|
|
|
, fetchPypi
|
2020-12-07 07:45:13 +00:00
|
|
|
, pythonAtLeast
|
2020-04-24 23:36:52 +00:00
|
|
|
, python
|
|
|
|
, nose
|
|
|
|
, mock
|
|
|
|
, requests
|
|
|
|
, httpretty
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "boto";
|
|
|
|
version = "2.49.0";
|
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
|
|
|
sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a";
|
|
|
|
};
|
|
|
|
|
2022-03-30 09:31:56 +00:00
|
|
|
patches = [
|
|
|
|
# fixes hmac tests
|
|
|
|
# https://sources.debian.org/src/python-boto/2.49.0-4/debian/patches/bug-953970_python3.8-compat.patch/
|
|
|
|
./bug-953970_python3.8-compat.patch
|
|
|
|
];
|
|
|
|
|
2022-10-30 15:09:59 +00:00
|
|
|
# boto is deprecated by upstream as of 2021-05-27 (https://github.com/boto/boto/commit/4980ac58764c3d401cb0b9552101f9c61c18f445)
|
|
|
|
# this patch is a bit simpler than https://github.com/boto/boto/pull/3898
|
|
|
|
# as we don't have to take care of pythonOlder "3.3".
|
|
|
|
postPatch = ''
|
|
|
|
substituteInPlace boto/dynamodb/types.py --replace 'from collections import Mapping' 'from collections.abc import Mapping'
|
|
|
|
substituteInPlace boto/mws/connection.py --replace 'import collections' 'import collections.abc as collections'
|
|
|
|
'';
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
checkPhase = ''
|
|
|
|
${python.interpreter} tests/test.py default
|
|
|
|
'';
|
|
|
|
|
|
|
|
checkInputs = [ nose mock ];
|
|
|
|
propagatedBuildInputs = [ requests httpretty ];
|
|
|
|
|
2021-10-08 15:17:17 +00:00
|
|
|
meta = with lib; {
|
2020-04-24 23:36:52 +00:00
|
|
|
homepage = "https://github.com/boto/boto";
|
|
|
|
license = licenses.mit;
|
|
|
|
description = "Python interface to Amazon Web Services";
|
|
|
|
longDescription = ''
|
|
|
|
The boto module is an integrated interface to current and
|
|
|
|
future infrastructural services offered by Amazon Web
|
|
|
|
Services. This includes S3, SQS, EC2, among others.
|
|
|
|
'';
|
|
|
|
maintainers = [ maintainers.costrouc ];
|
|
|
|
};
|
|
|
|
}
|