depot/third_party/nixpkgs/pkgs/development/python-modules/icmplib/default.nix
Default email 14e964f59b Project import generated by Copybara.
GitOrigin-RevId: fbfb79400a08bf754e32b4d4fc3f7d8f8055cf94
2021-06-06 04:54:09 -03:00

36 lines
730 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pbr
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "icmplib";
version = "3.0.0";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "ValentinBELYN";
repo = pname;
rev = "v${version}";
sha256 = "sha256-i5cmL8kOrehldOwX2RfVAfL4HdzJ+9S3BojJI2raUSA=";
};
propagatedBuildInputs = [
pbr
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 ];
};
}