python3Packages.mail-parser: remove version bounds on requirements.txt

This commit is contained in:
Jonathan Ringer 2020-05-12 11:08:35 -07:00 committed by Jon
parent 903f0560af
commit 57ba772b68

View File

@ -14,8 +14,12 @@ buildPythonPackage rec {
LC_ALL = "en_US.utf-8";
# remove version bounds
prePatch = ''
sed -i -e 's/==.*//g' requirements.txt
''
# ipaddress is part of the standard library of Python 3.3+
prePatch = lib.optionalString (!pythonOlder "3.3") ''
+ lib.optionalString (!pythonOlder "3.3") ''
substituteInPlace requirements.txt \
--replace "ipaddress" ""
'';