Files
nixpkgs/pkgs/development/python-modules/icmplib/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

39 lines
763 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
pbr,
pythonOlder,
requests,
}:
buildPythonPackage rec {
pname = "icmplib";
version = "3.0.4";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ValentinBELYN";
repo = "icmplib";
rev = "v${version}";
hash = "sha256-PnBcGiUvftz/KYg9Qd2GaIcF3OW4lYH301uI5/M5CBI=";
};
propagatedBuildInputs = [
pbr
requests
];
# Project has no tests
doCheck = false;
pythonImportsCheck = [ "icmplib" ];
meta = {
description = "Python implementation of the ICMP protocol";
homepage = "https://github.com/ValentinBELYN/icmplib";
license = with lib.licenses; [ lgpl3Plus ];
maintainers = with lib.maintainers; [ fab ];
};
}