mirror of
https://github.com/SebastianWendel/nixpkgs.git
synced 2024-09-19 20:09:01 +02:00
python312Packages.ping3: refactor
This commit is contained in:
parent
2c4f1bd741
commit
f5474cbbcc
|
@ -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";
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue