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
This commit is contained in:
Maximilian Bosch 2018-09-11 23:22:17 +02:00 committed by xeji
parent 53c5d4f8dd
commit 46d1166b80

View file

@ -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