Unverified Commit 02802987 authored by OTABI Tomoya's avatar OTABI Tomoya Committed by GitHub
Browse files

Merge pull request #259606 from mbalatsko/init-whois-api

python3Packages.whois-api: init at 1.2.0
parents 8aa39512 1349fb7d
Loading
Loading
Loading
Loading
+41 −0
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, setuptools
, requests
, pytestCheckHook
}:

buildPythonPackage rec {
  pname = "whois-api";
  version = "1.2.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "whois-api-llc";
    repo = "whois-api-py";
    rev = "v${version}";
    hash = "sha256-SeBeJ6k2R53LxHov+8t70geqUosk/yBJQCi6GaVteMM=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    requests
  ];

  # all tests touch internet
  doCheck = false;

  pythonImportsCheck = [ "whoisapi" ];

  meta = with lib; {
    description = "Whois API client library for Python";
    homepage = "https://github.com/whois-api-llc/whois-api-py";
    changelog = "https://github.com/whois-api-llc/whois-api-py/blob/${src.rev}/CHANGELOG.rst";
    license = licenses.mit;
    maintainers = with maintainers; [ mbalatsko ];
  };
}
+2 −0
Original line number Diff line number Diff line
@@ -15527,6 +15527,8 @@ self: super: with self; {
  whois = callPackage ../development/python-modules/whois { };
  whois-api = callPackage ../development/python-modules/whois-api { };
  whoosh = callPackage ../development/python-modules/whoosh { };
  widgetsnbextension = callPackage ../development/python-modules/widgetsnbextension { };