python.pkgs.moto: fix build

This commit is contained in:
Frederik Rietdijk 2020-06-11 11:06:56 +02:00
parent 4162b7b081
commit 0d72b5da2a

View File

@ -23,6 +23,7 @@
, werkzeug
, xmltodict
, parameterized
, idna
}:
buildPythonPackage rec {
@ -40,6 +41,14 @@ buildPythonPackage rec {
sed -i '/datetime/d' setup.py # should be taken care of by std library
'';
patches = [
# loosen idna upper limit
(fetchpatch {
url = "https://github.com/spulec/moto/commit/649b497f71cce95a6474a3ff6f3c9c3339efb68f.patch";
sha256 = "03qdybzlskgbdadmlcg6ayxfp821b5iaa8q2542cwkcq7msqbbqc";
})
];
propagatedBuildInputs = [
aws-xray-sdk
boto
@ -60,6 +69,7 @@ buildPythonPackage rec {
sshpubkeys
werkzeug
xmltodict
idna
] ++ lib.optionals isPy27 [ backports_tempfile ];
checkInputs = [ boto3 freezegun nose sure parameterized ];