git.iko.soy/typeable/nixpkgs
on master help sign in
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

commit46d1166b80610e9d6609d910e03fa12981731e09 authorMaximilian Bosch <maximilian@mbosch.me> dateTue 11 Sep 2018, 23:22 (8 years ago) parent53c5d4f
1 file changed+1
pkgs/development/tools/build-managers/pants/default.nix+1
pkgs/development/tools/build-managers/pants/default.nix+1
@@ -17,6 +17,7 @@ in buildPythonApplication rec {
1717
1818 prePatch = ''
1919 sed -E -i "s/'([[:alnum:].-]+)[=><][[:digit:]=><.,]*'/'\\1'/g" setup.py
20+ substituteInPlace setup.py --replace "requests[security]<2.19,>=2.5.0" "requests[security]<2.20,>=2.5.0"
2021 '';
2122
2223 # Unnecessary, and causes some really weird behavior around .class files, which