depot/third_party/nixpkgs/pkgs/development/python-modules/ping3/default.nix
Default email f34ce41345 Project import generated by Copybara.
GitOrigin-RevId: b73c2221a46c13557b1b3be9c2070cc42cf01eb3
2024-07-27 08:49:29 +02:00

36 lines
770 B
Nix

{
lib,
buildPythonPackage,
fetchPypi,
pythonOlder,
setuptools,
}:
buildPythonPackage rec {
pname = "ping3";
version = "4.0.8";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-mrRg61fwBrcfl3ppPRVyFaq9a7y8bNZCi2lR6q4MKHU=";
};
build-system = [ setuptools ];
# Tests require additional permissions
doCheck = false;
pythonImportsCheck = [ "ping3" ];
meta = with lib; {
description = "ICMP ping implementation using raw socket";
homepage = "https://github.com/kyan001/ping3";
changelog = "https://github.com/kyan001/ping3/blob/master/CHANGELOG.md";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
mainProgram = "ping3";
};
}