nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at 22.05 46 lines 1.2 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 disabled = pythonAtLeast "3.10"; # cannot import name 'Mapping' from 'collections' 16 17 src = fetchPypi { 18 inherit pname version; 19 sha256 = "ea0d3b40a2d852767be77ca343b58a9e3a4b00d9db440efb8da74b4e58025e5a"; 20 }; 21 22 patches = [ 23 # fixes hmac tests 24 # https://sources.debian.org/src/python-boto/2.49.0-4/debian/patches/bug-953970_python3.8-compat.patch/ 25 ./bug-953970_python3.8-compat.patch 26 ]; 27 28 checkPhase = '' 29 ${python.interpreter} tests/test.py default 30 ''; 31 32 checkInputs = [ nose mock ]; 33 propagatedBuildInputs = [ requests httpretty ]; 34 35 meta = with lib; { 36 homepage = "https://github.com/boto/boto"; 37 license = licenses.mit; 38 description = "Python interface to Amazon Web Services"; 39 longDescription = '' 40 The boto module is an integrated interface to current and 41 future infrastructural services offered by Amazon Web 42 Services. This includes S3, SQS, EC2, among others. 43 ''; 44 maintainers = [ maintainers.costrouc ]; 45 }; 46}