2024-06-05 15:53:02 +00:00
|
|
|
{
|
|
|
|
lib,
|
|
|
|
buildPythonPackage,
|
|
|
|
setuptools,
|
|
|
|
click,
|
|
|
|
geopy,
|
|
|
|
ping3,
|
|
|
|
requests,
|
|
|
|
tabulate,
|
|
|
|
fetchFromGitHub,
|
2023-07-15 17:15:38 +00:00
|
|
|
}:
|
|
|
|
|
|
|
|
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=";
|
|
|
|
};
|
|
|
|
|
2024-06-05 15:53:02 +00:00
|
|
|
nativeBuildInputs = [ setuptools ];
|
2023-07-15 17:15:38 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
click
|
|
|
|
geopy
|
|
|
|
ping3
|
|
|
|
requests
|
|
|
|
tabulate
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [ "mullvad_closest" ];
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Find Mullvad servers with the lowest latency at your location";
|
2024-04-21 15:54:59 +00:00
|
|
|
mainProgram = "mullvad-closest";
|
2023-07-15 17:15:38 +00:00
|
|
|
homepage = "https://github.com/Ch00k/mullvad-closest";
|
|
|
|
license = licenses.unlicense;
|
|
|
|
maintainers = with maintainers; [ siraben ];
|
|
|
|
};
|
|
|
|
}
|