nixpkgs/pkgs/development/python-modules/ping3/default.nix
stuebinm ff1a94e523 treewide: add meta.mainProgram to packages with a single binary
The nixpkgs-unstable channel's programs.sqlite was used to identify
packages producing exactly one binary, and these automatically added
to their package definitions wherever possible.
2024-03-19 03:14:51 +01:00

33 lines
635 B
Nix

{ lib
, buildPythonPackage
, setuptools
, wheel
, fetchPypi
}:
buildPythonPackage rec {
pname = "ping3";
version = "4.0.5";
format = "pyproject";
src = fetchPypi {
inherit pname version;
hash = "sha256-HwkYXokyFDZSSZayEtID08q1rSJofedGRXDxx/udwFE=";
};
nativeBuildInputs = [
setuptools
wheel
];
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";
license = licenses.mit;
maintainers = with maintainers; [ siraben ];
};
}