Unverified Commit b341b468 authored by Kevin Cox's avatar Kevin Cox Committed by GitHub
Browse files

Merge pull request #242662 from siraben/mullvad-closest-init

python3Packages.ping3: init at 4.0.4, mullvad-closest: init at unstable-2023-07-09
parents a9e20ed1 e647fd4b
Loading
Loading
Loading
Loading
+44 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, setuptools
, click
, geopy
, ping3
, requests
, tabulate
, fetchFromGitHub
}:

buildPythonPackage rec {
  pname = "mullvad-closest";
  version = "unstable-2023-07-09";
  format = "pyproject";

  src = fetchFromGitHub {
    owner = "Ch00k";
    repo = "mullvad-closest";
    rev = "894d2075a520fcad238256725245030374693a16";
    hash = "sha256-scJiYjEmnDDElE5rHdPbnnuNjjRB0/X3vNGLoi2MAmo=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    click
    geopy
    ping3
    requests
    tabulate
  ];

  pythonImportsCheck = [ "mullvad_closest" ];

  meta = with lib; {
    description = "Find Mullvad servers with the lowest latency at your location";
    homepage = "https://github.com/Ch00k/mullvad-closest";
    license = licenses.unlicense;
    maintainers = with maintainers; [ siraben ];
  };
}
+31 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, setuptools
, wheel
, fetchPypi
}:

buildPythonPackage rec {
  pname = "ping3";
  version = "4.0.4";
  format = "pyproject";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-HqEqz2dS1GZmFjQf18Y5PGZM/8UQxpPvBvc2+yZ6E7o=";
  };

  nativeBuildInputs = [
    setuptools
    wheel
  ];

  pythonImportsCheck = [ "ping3" ];

  meta = with lib; {
    description = "A pure python3 version of ICMP ping implementation using raw socket";
    homepage = "https://pypi.org/project/ping3";
    license = licenses.mit;
    maintainers = with maintainers; [ siraben ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -26157,6 +26157,8 @@ with pkgs;
  mullvad-browser = callPackage ../applications/networking/browsers/mullvad-browser { };
  mullvad-closest = with python3Packages; toPythonApplication mullvad-closest;
  mycorrhiza = callPackage ../servers/mycorrhiza { };
  napalm = with python3Packages; toPythonApplication (
+4 −0
Original line number Diff line number Diff line
@@ -6626,6 +6626,8 @@ self: super: with self; {

  mullvad-api = callPackage ../development/python-modules/mullvad-api { };

  mullvad-closest = callPackage ../development/python-modules/mullvad-closest { };

  mulpyplexer = callPackage ../development/python-modules/mulpyplexer { };

  multidict = callPackage ../development/python-modules/multidict { };
@@ -7672,6 +7674,8 @@ self: super: with self; {

  pfzy = callPackage ../development/python-modules/pfzy { };

  ping3 = callPackage ../development/python-modules/ping3 { };

  pg8000 = callPackage ../development/python-modules/pg8000 { };

  pgcli = callPackage ../development/python-modules/pgcli { };