summary refs log tree commit diff
path: root/pkgs/development/python-modules/boto/default.nix
blob: 8452e05beccf2f5d52118ea5e94b7430f68d3e3c (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
{ pkgs
, buildPythonPackage
, fetchPypi
, isPy38
, python
, nose
, mock
, requests
, httpretty
}:

buildPythonPackage rec {
  pname = "boto";
  version = "2.49.0";

  src = fetchPypi {
    inherit pname version;
    sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a";
  };

  checkPhase = ''
    ${python.interpreter} tests/test.py default
  '';

  doCheck = (!isPy38); # hmac functionality has changed
  checkInputs = [ nose mock ];
  propagatedBuildInputs = [ requests httpretty ];

  meta = with pkgs.lib; {
    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 ];
  };
}