depot/third_party/nixpkgs/pkgs/development/python-modules/icmplib/default.nix
Default email fcc03dbfc5 Project import generated by Copybara.
GitOrigin-RevId: ff96a0fa5635770390b184ae74debea75c3fd534
2021-02-13 15:23:35 +01:00

38 lines
745 B
Nix

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