mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-11 15:27:20 +03:00
mail-parser: Remove invalid requirements.txt patch
Upstream modified requirements.txt and is no longer pinning dependencies to exact versions. Instead, it provides version bounds. Also, the ipaddress dependency is now limited already in requirements.txt to Python versions < 3.3. Removed all the patching since it generated an invalid requirements.txt that caused the build to fail.
This commit is contained in:
parent
460d4a40a0
commit
652e738eef
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user