mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-20 12:29:02 +02:00
python3Packages.mail-parser: remove version bounds on requirements.txt
This commit is contained in:
parent
903f0560af
commit
57ba772b68
|
@ -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" ""
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue