1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-19 20:21:14 +00:00
nixpkgs/pkgs/development/python-modules/boto/default.nix
Jonathan Ringer 732b38a835 python39Packages.boto: disable for python39
no longer compatible:
```
  File "/build/boto-2.49.0/tests/unit/utils/test_utils.py", line 88, in hmac_hashfunc
    return hmac.new(b'mysecretkey', msg)
  File "/nix/store/x3655l9x6b5khxzzl0s2zg1kn0qr3zfs-python3-3.9.0/lib/python3.9/hmac.py", line 170, in new
    return HMAC(key, msg, digestmod)
  File "/nix/store/x3655l9x6b5khxzzl0s2zg1kn0qr3zfs-python3-3.9.0/lib/python3.9/hmac.py", line 56, in __init__
    raise TypeError("Missing required parameter 'digestmod'.")
TypeError: Missing required parameter 'digestmod'.
```
2020-12-01 14:44:25 +01:00

43 lines
1 KiB
Nix

{ pkgs
, buildPythonPackage
, fetchPypi
, pythonAtLeast
, isPy38
, python
, nose
, mock
, requests
, httpretty
}:
buildPythonPackage rec {
pname = "boto";
version = "2.49.0";
disabled = pythonAtLeast "3.9"; # no longer compatible with hmac std lib package
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 ];
};
}