conkeyscan: replace random-user-agent with fake-useragent
Applies patch from upstream PR https://github.com/CompassSecurity/conkeyscan/pull/3 to replace the abandoned random-user-agent package with fake-useragent. Part of #410837.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
lib,
|
||||
python3,
|
||||
fetchFromGitHub,
|
||||
fetchpatch,
|
||||
}:
|
||||
|
||||
let
|
||||
@@ -34,6 +35,15 @@ python.pkgs.buildPythonApplication rec {
|
||||
hash = "sha256-xYCms+Su7FmaG7KVHZpzfD/wx9Gepz11t8dEK/YDfvI=";
|
||||
};
|
||||
|
||||
patches = [
|
||||
# https://github.com/CompassSecurity/conkeyscan/pull/3
|
||||
(fetchpatch {
|
||||
name = "replace-random-user-agent-with-fake-useragent.patch";
|
||||
url = "https://github.com/nagapraneethk/conkeyscan/commit/f6cf61cc42fcc07930a06891b6c4a2653bfbf47f.patch";
|
||||
hash = "sha256-zfHU/KsgzQvn/kNsWZy1hGZaBHw/he1zDTUHHV/BHFc=";
|
||||
})
|
||||
];
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail "{{VERSION_PLACEHOLDER}}" "${version}"
|
||||
@@ -47,7 +57,7 @@ python.pkgs.buildPythonApplication rec {
|
||||
clize
|
||||
loguru
|
||||
pysocks
|
||||
random-user-agent
|
||||
fake-useragent
|
||||
readchar
|
||||
requests-ratelimiter
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user