1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 pbr,
6 pythonOlder,
7 requests,
8}:
9
10buildPythonPackage rec {
11 pname = "icmplib";
12 version = "3.0.4";
13 format = "setuptools";
14 disabled = pythonOlder "3.7";
15
16 src = fetchFromGitHub {
17 owner = "ValentinBELYN";
18 repo = "icmplib";
19 rev = "v${version}";
20 hash = "sha256-PnBcGiUvftz/KYg9Qd2GaIcF3OW4lYH301uI5/M5CBI=";
21 };
22
23 propagatedBuildInputs = [
24 pbr
25 requests
26 ];
27
28 # Project has no tests
29 doCheck = false;
30 pythonImportsCheck = [ "icmplib" ];
31
32 meta = with lib; {
33 description = "Python implementation of the ICMP protocol";
34 homepage = "https://github.com/ValentinBELYN/icmplib";
35 license = with licenses; [ lgpl3Plus ];
36 maintainers = with maintainers; [ fab ];
37 };
38}