From 652e738eef795a3400ec78c83a35e18f6e7184ae Mon Sep 17 00:00:00 2001 From: polygon Date: Thu, 13 May 2021 20:26:21 +0200 Subject: [PATCH] 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. --- .../development/python-modules/mail-parser/default.nix | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/pkgs/development/python-modules/mail-parser/default.nix b/pkgs/development/python-modules/mail-parser/default.nix index 219a9066dc7..a2e7898f049 100644 --- a/pkgs/development/python-modules/mail-parser/default.nix +++ b/pkgs/development/python-modules/mail-parser/default.nix @@ -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;