depot/third_party/nixpkgs/pkgs/development/python-modules/whois/default.nix
Default email ffc78d3539 Project import generated by Copybara.
GitOrigin-RevId: d9dba88d08a9cdf483c3d45f0d7220cf97a4ce64
2021-01-05 19:05:55 +02:00

32 lines
716 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, pytestCheckHook
, inetutils
}:
buildPythonPackage rec {
pname = "whois";
version = "0.9.7";
src = fetchFromGitHub {
owner = "DannyCork";
repo = "python-whois";
rev = version;
sha256 = "1rbc4xif4dn455vc8dhxdvwszrb0nik5q9fy12db6mxfx6zikb7z";
};
# whois is needed
propagatedBuildInputs = [ inetutils ];
# tests require network access
doCheck = false;
pythonImportsCheck = [ "whois" ];
meta = with lib; {
description = "Python module/library for retrieving WHOIS information";
homepage = "https://github.com/DannyCork/python-whois/";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
};
}