Commit 2970f58e authored by mib's avatar mib
Browse files

fangfrisch: add override to support socks proxies

fangfrisch relies on python's requests which can use proxies by setting
environment variables `HTTP_PROXY`, `ALL_PROXY`, etc. To support a socks
proxy, set via `ALL_PROXY`, it needs the `pysocks` dependency.
parent b05c2997
Loading
Loading
Loading
Loading
+10 −4
Original line number Diff line number Diff line
@@ -3,6 +3,9 @@
  python3,
  fetchFromGitHub,
  nix-update-script,

  # support setting socks proxies in `ALL_PROXY` environment variable
  supportSocks ? true,
}:
let
  version = "1.9.2";
@@ -24,10 +27,13 @@ python3.pkgs.buildPythonApplication {
    python3.pkgs.wheel
  ];

  propagatedBuildInputs = with python3.pkgs; [
  propagatedBuildInputs =
    with python3.pkgs;
    [
      requests
      sqlalchemy
  ];
    ]
    ++ lib.optional supportSocks pysocks;

  pythonImportsCheck = [ "fangfrisch" ];