From 46d1166b80610e9d6609d910e03fa12981731e09 Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Tue, 11 Sep 2018 23:22:17 +0200 Subject: [PATCH] pants: fix build (#46545) See https://hydra.nixos.org/build/80727495 `pants' works with requests==2.19 to build successfully and `nixpkgs' currently uses `requests==2.19.1`. Patching the version constraint in `setup.py' accordingly fixes the problem. Addresses #45960 --- pkgs/development/tools/build-managers/pants/default.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/pkgs/development/tools/build-managers/pants/default.nix b/pkgs/development/tools/build-managers/pants/default.nix index 1ad52f327e1..02bf9c23cba 100644 --- a/pkgs/development/tools/build-managers/pants/default.nix +++ b/pkgs/development/tools/build-managers/pants/default.nix @@ -17,6 +17,7 @@ in buildPythonApplication rec { prePatch = '' sed -E -i "s/'([[:alnum:].-]+)[=><][[:digit:]=><.,]*'/'\\1'/g" setup.py + substituteInPlace setup.py --replace "requests[security]<2.19,>=2.5.0" "requests[security]<2.20,>=2.5.0" ''; # Unnecessary, and causes some really weird behavior around .class files, which