Commit f5474cbb authored by Fabian Affolter's avatar Fabian Affolter
Browse files

python312Packages.ping3: refactor

parent 2c4f1bd7
Loading
Loading
Loading
Loading
+14 −8
Original line number Diff line number Diff line
{ 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";
  };
}