Merge pull request #198625 from fabaff/mitmproxy_wireguard

python310Packages.mitmproxy-wireguard: init at 0.1.15
This commit is contained in:
Fabian Affolter 2022-10-31 08:00:09 +01:00 committed by GitHub
commit 28bb916518
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 53 additions and 0 deletions

View file

@ -0,0 +1,51 @@
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, pythonOlder
, rustPlatform
, setuptools-rust
}:
buildPythonPackage rec {
pname = "mitmproxy-wireguard";
version = "0.1.15";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "decathorpe";
repo = "mitmproxy_wireguard";
rev = "refs/tags/${version}";
hash = "sha256-31S955juthagoFsthVTf3Vjx2YCKn43HKJ6mjrA8lfw=";
};
nativeBuildInputs = [
setuptools-rust
] ++ (with rustPlatform; [
cargoSetupHook
maturinBuildHook
]);
cargoDeps = rustPlatform.fetchCargoTarball {
inherit src;
name = "${pname}-${version}";
hash = "sha256-e2P3vfiaTOUf28Lexv2SDFaiGE55G8EkDKSYb8b7vLM=";
};
# Module has no tests, only a test client
doCheck = false;
pythonImportsCheck = [
"mitmproxy_wireguard"
];
meta = with lib; {
description = "WireGuard frontend for mitmproxy";
homepage = "https://github.com/decathorpe/mitmproxy_wireguard";
changelog = "https://github.com/decathorpe/mitmproxy_wireguard/releases/tag/${version}";
license = licenses.mit;
maintainers = with maintainers; [ fab ];
};
}

View file

@ -5706,6 +5706,8 @@ self: super: with self; {
mitmproxy = callPackage ../development/python-modules/mitmproxy { };
mitmproxy-wireguard = callPackage ../development/python-modules/mitmproxy-wireguard { };
mitogen = callPackage ../development/python-modules/mitogen { };
mixpanel = callPackage ../development/python-modules/mixpanel { };