Unverified Commit ff741a65 authored by Fabian Affolter's avatar Fabian Affolter Committed by GitHub
Browse files

Merge pull request #311549 from r-ryantm/auto-update/python311Packages.asyncwhois

python311Packages.asyncwhois: 1.1.0 -> 1.1.2
parents 953a921e 5e1e2d1f
Loading
Loading
Loading
Loading
+22 −25
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, python-socks
, pythonOlder
, setuptools
, tldextract
, whodap
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  pytest-asyncio,
  pytest-mock,
  pytestCheckHook,
  python-socks,
  pythonOlder,
  setuptools,
  tldextract,
  whodap,
}:

buildPythonPackage rec {
  pname = "asyncwhois";
  version = "1.1.0";
  version = "1.1.2";
  pyproject = true;

  disabled = pythonOlder "3.9";
@@ -22,14 +23,17 @@ buildPythonPackage rec {
    owner = "pogzyb";
    repo = "asyncwhois";
    rev = "refs/tags/v${version}";
    hash = "sha256-rJwJhSOFrZZ3WXEZmPMfdosBBW/R5/PMqs0QLnsPMoI=";
    hash = "sha256-ESVgK4Z26OAamdHPEVxysnlJ0rEUlr8KNd24fawHuEg=";
  };

  nativeBuildInputs = [
    setuptools
  ];
  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "python-socks[asyncio]" "python-socks"
  '';

  build-system = [ setuptools ];

  propagatedBuildInputs = [
  dependencies = [
    python-socks
    tldextract
    whodap
@@ -41,11 +45,6 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace-fail "python-socks[asyncio]" "python-socks"
  '';

  disabledTests = [
    # Tests require network access
    "test_pywhois_aio_get_hostname_from_ip"
@@ -63,9 +62,7 @@ buildPythonPackage rec {
    "test__get_top_level_domain"
  ];

  pythonImportsCheck = [
    "asyncwhois"
  ];
  pythonImportsCheck = [ "asyncwhois" ];

  meta = with lib; {
    description = "Python module for retrieving WHOIS information";