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.
This commit is contained in:
@@ -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; [
|
||||
requests
|
||||
sqlalchemy
|
||||
];
|
||||
propagatedBuildInputs =
|
||||
with python3.pkgs;
|
||||
[
|
||||
requests
|
||||
sqlalchemy
|
||||
]
|
||||
++ lib.optional supportSocks pysocks;
|
||||
|
||||
pythonImportsCheck = [ "fangfrisch" ];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user