1{ lib
2, buildPythonPackage
3, fetchPypi
4, pythonAtLeast
5, isPy38
6, python
7, nose
8, mock
9, requests
10, httpretty
11}:
12
13buildPythonPackage rec {
14 pname = "boto";
15 version = "2.49.0";
16 disabled = pythonAtLeast "3.9"; # no longer compatible with hmac std lib package
17
18 src = fetchPypi {
19 inherit pname version;
20 sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a";
21 };
22
23 checkPhase = ''
24 ${python.interpreter} tests/test.py default
25 '';
26
27 doCheck = !isPy38; # hmac functionality has changed
28 checkInputs = [ nose mock ];
29 propagatedBuildInputs = [ requests httpretty ];
30
31 meta = with lib; {
32 homepage = "https://github.com/boto/boto";
33 license = licenses.mit;
34 description = "Python interface to Amazon Web Services";
35 longDescription = ''
36 The boto module is an integrated interface to current and
37 future infrastructural services offered by Amazon Web
38 Services. This includes S3, SQS, EC2, among others.
39 '';
40 maintainers = [ maintainers.costrouc ];
41 };
42}