Files
Ihar Hrachyshka cca3b04b44 treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 19:01:23 +01:00

45 lines
896 B
Nix

{
lib,
buildPythonPackage,
setuptools,
click,
geopy,
ping3,
requests,
tabulate,
fetchFromGitHub,
}:
buildPythonPackage {
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 = {
description = "Find Mullvad servers with the lowest latency at your location";
mainProgram = "mullvad-closest";
homepage = "https://github.com/Ch00k/mullvad-closest";
license = lib.licenses.unlicense;
maintainers = with lib.maintainers; [ siraben ];
};
}