mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-22 23:13:19 +00:00
python312Packages.pyreqwest-impersonate: remove
The package has been replaced by `python312Packages.primp`.
This commit is contained in:
parent
8acc475795
commit
2389fd1140
@ -1,69 +0,0 @@
|
||||
{
|
||||
lib,
|
||||
stdenv,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
rustPlatform,
|
||||
pytest,
|
||||
runCommand,
|
||||
boringssl,
|
||||
libiconv,
|
||||
SystemConfiguration,
|
||||
}:
|
||||
|
||||
let
|
||||
# boring-sys expects the static libraries in build/ instead of lib/
|
||||
boringssl-wrapper = runCommand "boringssl-wrapper" { } ''
|
||||
mkdir $out
|
||||
cd $out
|
||||
ln -s ${boringssl.out}/lib build
|
||||
ln -s ${boringssl.dev}/include include
|
||||
'';
|
||||
in
|
||||
buildPythonPackage rec {
|
||||
pname = "pyreqwest-impersonate";
|
||||
version = "0.4.9";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "deedy5";
|
||||
repo = "pyreqwest_impersonate";
|
||||
rev = "v${version}";
|
||||
hash = "sha256-U22NNYN8p3IQIAVb6dOrErFvuJ5m5yXi2ELbyuaNlFc=";
|
||||
};
|
||||
|
||||
cargoDeps = rustPlatform.fetchCargoTarball {
|
||||
inherit src;
|
||||
name = "${pname}-${version}";
|
||||
hash = "sha256-rj9tfOzhzfWBoxBGlTXHAmiH5qxyoLnHhlEijy/q+Ws=";
|
||||
};
|
||||
|
||||
nativeBuildInputs = [
|
||||
rustPlatform.bindgenHook
|
||||
rustPlatform.cargoSetupHook
|
||||
rustPlatform.maturinBuildHook
|
||||
];
|
||||
|
||||
buildInputs = lib.optionals stdenv.hostPlatform.isDarwin [
|
||||
libiconv
|
||||
SystemConfiguration
|
||||
];
|
||||
|
||||
env.BORING_BSSL_PATH = boringssl-wrapper;
|
||||
|
||||
optional-dependencies = {
|
||||
dev = [ pytest ];
|
||||
};
|
||||
|
||||
# Test use network
|
||||
doCheck = false;
|
||||
|
||||
pythonImportsCheck = [ "pyreqwest_impersonate" ];
|
||||
|
||||
meta = {
|
||||
description = "HTTP client that can impersonate web browsers (Chrome/Edge/OkHttp/Safari), mimicking their headers and TLS/JA3/JA4/HTTP2 fingerprints";
|
||||
homepage = "https://github.com/deedy5/pyreqwest_impersonate";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ drupol ];
|
||||
};
|
||||
}
|
@ -485,6 +485,7 @@ mapAliases ({
|
||||
pyres = throw "pyres has been removed, since it is abandoned and broken"; # added 2023-06-20
|
||||
pygeoip = throw "pygeoip has been removed, since it wash archived in April 2018"; # added 2024-07-27
|
||||
pygeos = throw "pygeos has been removed, since it was merged with shapely 2.0"; # added 2024-05-26
|
||||
pyreqwest-impersonate = throw "pyreqwest has been renamed to primp"; # added 2024-10-22
|
||||
pyRFC3339 = pyrfc3339; # added 2024-01-07
|
||||
pyroute2-core = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16
|
||||
pyroute2-ethtool = throw "pyroute2 migrated back to a single package scheme in version 0.7.1"; # added 2022-07-16
|
||||
|
@ -10320,10 +10320,6 @@ self: super: with self; {
|
||||
|
||||
pyrender = callPackage ../development/python-modules/pyrender { };
|
||||
|
||||
pyreqwest-impersonate = callPackage ../development/python-modules/pyreqwest-impersonate {
|
||||
inherit (pkgs.darwin.apple_sdk.frameworks) SystemConfiguration;
|
||||
};
|
||||
|
||||
pyrevolve = callPackage ../development/python-modules/pyrevolve { };
|
||||
|
||||
pyrfxtrx = callPackage ../development/python-modules/pyrfxtrx { };
|
||||
|
Loading…
Reference in New Issue
Block a user