Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[20.09] python3Packages.requests-aws4auth: fix build #98221

Merged
merged 1 commit into from Sep 18, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 5 additions & 8 deletions pkgs/development/python-modules/requests-aws4auth/default.nix
@@ -1,4 +1,4 @@
{ lib, buildPythonPackage, fetchPypi, isPy3k, requests }:
{ lib, buildPythonPackage, fetchPypi, python, requests }:
with lib;
buildPythonPackage rec {
pname = "requests-aws4auth";
Expand All @@ -9,15 +9,12 @@ buildPythonPackage rec {
sha256 = "2950f6ff686b5a452a269076d990e4821d959b61cfac319c3d3c6daaa5db55ce";
};

postPatch = optionalString isPy3k ''
sed "s/path_encoding_style/'path_encoding_style'/" \
-i requests_aws4auth/service_parameters.py
'';

propagatedBuildInputs = [ requests ];

# The test fail on Python >= 3 because of module import errors.
doCheck = !isPy3k;
checkPhase = ''
cd requests_aws4auth
${python.interpreter} test/requests_aws4auth_test.py
'';

meta = {
description = "Amazon Web Services version 4 authentication for the Python Requests library.";
Expand Down