Merge pull request #122875 from polygon/mail-parser-patch-fix

mail-parser: Remove invalid requirements.txt patch
This commit is contained in:
Robert Scott 2021-05-13 20:04:04 +01:00 committed by GitHub
commit 091f7e0036
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -14,16 +14,6 @@ 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+
+ lib.optionalString (!pythonOlder "3.3") ''
substituteInPlace requirements.txt \
--replace "ipaddress" ""
'';
nativeBuildInputs = [ glibcLocales ];
propagatedBuildInputs = [ simplejson six ] ++ lib.optional (pythonOlder "3.3") ipaddress;