python3Packages.requests-aws4auth: fix build
This commit is contained in:
parent
20472523e7
commit
5f0f2b85cb
@ -1,4 +1,4 @@
|
|||||||
{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }:
|
{ lib, buildPythonPackage, fetchPypi, python, requests }:
|
||||||
with lib;
|
with lib;
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "requests-aws4auth";
|
pname = "requests-aws4auth";
|
||||||
@ -9,15 +9,12 @@ buildPythonPackage rec {
|
|||||||
sha256 = "2950f6ff686b5a452a269076d990e4821d959b61cfac319c3d3c6daaa5db55ce";
|
sha256 = "2950f6ff686b5a452a269076d990e4821d959b61cfac319c3d3c6daaa5db55ce";
|
||||||
};
|
};
|
||||||
|
|
||||||
postPatch = optionalString isPy3k ''
|
|
||||||
sed "s/path_encoding_style/'path_encoding_style'/" \
|
|
||||||
-i requests_aws4auth/service_parameters.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
propagatedBuildInputs = [ requests ];
|
propagatedBuildInputs = [ requests ];
|
||||||
|
|
||||||
# The test fail on Python >= 3 because of module import errors.
|
checkPhase = ''
|
||||||
doCheck = !isPy3k;
|
cd requests_aws4auth
|
||||||
|
${python.interpreter} test/requests_aws4auth_test.py
|
||||||
|
'';
|
||||||
|
|
||||||
meta = {
|
meta = {
|
||||||
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
|
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user