python312Packages.ping3: refactor

This commit is contained in:
Fabian Affolter 2024-04-06 20:03:02 +02:00
parent 2c4f1bd741
commit f5474cbbcc
1 changed files with 14 additions and 8 deletions

View File

@ -1,32 +1,38 @@
{ lib
, buildPythonPackage
, setuptools
, wheel
, fetchPypi
, pytestCheckHook
, pythonOlder
, setuptools
}:
buildPythonPackage rec {
pname = "ping3";
version = "4.0.7";
format = "pyproject";
pyproject = true;
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
hash = "sha256-uO2ObCZvizdGSrobagC6GDh116z5q5yIH9P8PcvpCi8=";
};
nativeBuildInputs = [
build-system = [
setuptools
wheel
];
# Tests require additional permissions
doCheck = false;
pythonImportsCheck = [ "ping3" ];
meta = with lib; {
description = "A pure python3 version of ICMP ping implementation using raw socket";
mainProgram = "ping3";
homepage = "https://pypi.org/project/ping3";
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";
};
}