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:
mib
2025-04-15 17:27:07 +02:00
parent b05c2997b1
commit 2970f58e09
+10 -4
View File
@@ -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" ];