587713944a
GitOrigin-RevId: 6143fc5eeb9c4f00163267708e26191d1e918932
37 lines
789 B
Nix
37 lines
789 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchPypi,
|
|
pytestCheckHook,
|
|
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";
|
|
};
|
|
}
|