1{ lib, buildPythonPackage, fetchPypi, fetchzip, isPy3k, requests }: 2with lib; 3buildPythonPackage rec { 4 pname = "requests-aws4auth"; 5 version = "0.9"; 6 7 src = fetchPypi { 8 inherit pname version; 9 sha256 = "0g52a1pm53aqkc9qb5q1m918c1qy6q47c1qz63p5ilynfbs3m5y9"; 10 }; 11 12 postPatch = optionalString isPy3k '' 13 sed "s/path_encoding_style/'path_encoding_style'/" \ 14 -i requests_aws4auth/service_parameters.py 15 ''; 16 17 propagatedBuildInputs = [ requests ]; 18 19 # The test fail on Python >= 3 because of module import errors. 20 doCheck = !isPy3k; 21 22 meta = { 23 description = "Amazon Web Services version 4 authentication for the Python Requests library."; 24 homepage = https://github.com/sam-washington/requests-aws4auth; 25 license = licenses.mit; 26 maintainers = [ maintainers.basvandijk ]; 27 }; 28}