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

Merge pull request #260512 from fabaff/tldextract-bump

python311Packages.tldextract: 3.6.0 -> 5.0.0
parents 3969de83 be5acc54
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
{ lib
, buildPythonPackage
, fetchFromGitHub
, pytest-asyncio
, pytest-mock
, pytestCheckHook
, python-socks
@@ -18,7 +19,7 @@ buildPythonPackage rec {

  src = fetchFromGitHub {
    owner = "pogzyb";
    repo = pname;
    repo = "asyncwhois";
    rev = "refs/tags/v${version}";
    hash = "sha256-fYXxoS4bGTat5QT98ETmWk/VKXJmg9mtkUu02SZT4Eo=";
  };
@@ -30,6 +31,7 @@ buildPythonPackage rec {
  ];

  nativeCheckInputs = [
    pytest-asyncio
    pytest-mock
    pytestCheckHook
  ];
@@ -52,6 +54,8 @@ buildPythonPackage rec {
    "test_whois_query_run"
    "test_whois_query_create_connection"
    "test_whois_query_send_and_recv"
    "test_input_parameters_for_domain_query"
    "test__get_top_level_domain"
  ];

  pythonImportsCheck = [
+23 −4
Original line number Diff line number Diff line
@@ -4,20 +4,29 @@
, pyopenssl
, tldextract
, pytestCheckHook
, pytest-cov
, pythonOlder
}:

buildPythonPackage rec {
  pname = "certauth";
  version = "1.3.0";
  format = "setuptools";

  disabled = pythonOlder "3.7";

  src = fetchFromGitHub {
    owner = "ikreymer";
    repo = "certauth";
    rev = "ad2bae5d40a9e45519fc1f2cd7678174bbc55b3d"; # Repo has no git tags
    # Repo has no git tags, https://github.com/ikreymer/certauth/issues/15
    rev = "ad2bae5d40a9e45519fc1f2cd7678174bbc55b3d";
    hash = "sha256-Rso5N0jb9k7bdorjPIUMNiZZPnzwbkxFNiTpsJ9pco0=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "--cov certauth " ""
  '';

  propagatedBuildInputs = [
    pyopenssl
    tldextract
@@ -25,10 +34,20 @@ buildPythonPackage rec {

  nativeCheckInputs = [
    pytestCheckHook
    pytest-cov
  ];

  pythonImportsCheck = [ "certauth" ];
  pythonImportsCheck = [
    "certauth"
  ];

  disabledTests = [
    # Tests want to download Public Suffix List
    "test_file_wildcard"
    "test_file_wildcard_subdomains"
    "test_in_mem_parent_wildcard_cert"
    "test_in_mem_parent_wildcard_cert_at_tld"
    "test_in_mem_parent_wildcard_cert_2"
  ];

  meta = with lib; {
    description = "Simple CertificateAuthority and host certificate creation, useful for man-in-the-middle HTTPS proxy";
+18 −7
Original line number Diff line number Diff line
@@ -14,15 +14,22 @@
buildPythonPackage rec {
  pname = "corsair-scan";
  version = "0.2.0";
  format = "setuptools";

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "Santandersecurityresearch";
    repo = "corsair_scan";
    rev = "v${version}";
    sha256 = "09jsv5bag7mjy0rxsxjzmg73rjl7qknzr0d7a7himd7v6a4ikpmk";
    rev = "refs/tags/v${version}";
    hash = "sha256-s94ZiTL7tBrhUaeB/O3Eh8o8zqtfdt0z8LKep1bZWiY=";
  };

  postPatch = ''
    substituteInPlace setup.py \
      --replace "'pytest-runner'," ""
  '';

  propagatedBuildInputs = [
    validators
    requests
@@ -36,16 +43,20 @@ buildPythonPackage rec {
    pytestCheckHook
  ];

  postPatch = ''
    substituteInPlace setup.py \
      --replace "'pytest-runner'," ""
  '';
  pythonImportsCheck = [
    "corsair_scan"
  ];

  pythonImportsCheck = [ "corsair_scan" ];
  disabledTests = [
    # Tests want to download Public Suffix List
    "test_corsair_scan_401"
    "test_corsair_scan_origin"
  ];

  meta = with lib; {
    description = "Python module to check for Cross-Origin Resource Sharing (CORS) misconfigurations";
    homepage = "https://github.com/Santandersecurityresearch/corsair_scan";
    changelog = "https://github.com/Santandersecurityresearch/corsair_scan/releases/tag/v${version}";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
+67 −33
Original line number Diff line number Diff line
{ buildPythonPackage
, fetchFromGitHub
, poetry-core
{ lib
, beautifulsoup4
, boto3
, buildPythonPackage
, cryptography
, dnspython
, fetchFromGitHub
, importlib-metadata
, localzone
, oci
, poetry-core
, pyotp
, pytest-vcr
, pytestCheckHook
, pythonOlder
, pyyaml
, requests
, tldextract
, pytestCheckHook
, pytest-vcr
# Optional depedencies
, boto3
, localzone
, softlayer
, tldextract
, zeep
, dnspython
, oci
, lib
}:

buildPythonPackage rec {
  pname = "dns_lexicon";
  version = "3.14.1";
  format = "pyproject";
  version = "3.16.0";
  pyproject = true;

  disabled = pythonOlder "3.8";

  src = fetchFromGitHub {
    owner = "Analogj";
    repo = "lexicon";
    rev = "v${version}";
    hash = "sha256-flK2G9mdUWMUACQPo6TqYZ388EacIqkq//tCzUS+Eo8=";
    rev = "refs/tags/v${version}";
    hash = "sha256-GUYsTZPvsqGemViSqgEvYhyjTEut42akMq2ZK2P1fX0=";
  };

  nativeBuildInputs = [ poetry-core ];

  nativeCheckInputs = [
    pytestCheckHook
    pytest-vcr
  ] ++ passthru.optional-dependencies.full;
  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    beautifulsoup4
    cryptography
    importlib-metadata
    pyotp
    pyyaml
    requests
    tldextract
  ] ++ lib.optionals (pythonOlder "3.10") [
    importlib-metadata
  ];

  passthru.optional-dependencies = {
    route53 = [ boto3 ];
    localzone = [ localzone ];
    softlayer = [ softlayer ];
    ddns = [ dnspython ];
    duckdns = [ dnspython ];
    oci = [ oci ];
    full = [ boto3 localzone softlayer zeep dnspython oci ];
    route53 = [
      boto3
    ];
    localzone = [
      localzone
    ];
    softlayer = [
      softlayer
    ];
    ddns = [
      dnspython
    ];
    duckdns = [
      dnspython
    ];
    oci = [
      oci
    ];
    full = [
      boto3
      dnspython
      localzone
      oci
      softlayer
      zeep
    ];
  };

  nativeCheckInputs = [
    pytestCheckHook
    pytest-vcr
  ] ++ passthru.optional-dependencies.full;

  pytestFlagsArray = [
    "tests/"
  ];
@@ -64,11 +90,20 @@ buildPythonPackage rec {
  disabledTestPaths = [
    # Needs network access
    "tests/providers/test_auto.py"

    # Needs network access (and an API token)
    "tests/providers/test_namecheap.py"
  ];

  disabledTests = [
    # Tests want to download Public Suffix List
    "test_client_legacy_init"
    "test_client_basic_init"
    "test_client_init"
    "test_client_parse_env"
    "test_missing"
    "action_is_correctly"
  ];

  pythonImportsCheck = [
    "lexicon"
  ];
@@ -77,8 +112,7 @@ buildPythonPackage rec {
    description = "Manipulate DNS records on various DNS providers in a standardized way";
    homepage = "https://github.com/AnalogJ/lexicon";
    changelog = "https://github.com/AnalogJ/lexicon/blob/v${version}/CHANGELOG.md";
    maintainers = with maintainers; [ aviallon ];
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ aviallon ];
  };

}
+2 −0
Original line number Diff line number Diff line
@@ -101,6 +101,8 @@ buildPythonPackage rec {
    "test_persist"
    "test_timeout_download_from_spider_nodata_rcvd"
    "test_timeout_download_from_spider_server_hangs"
    "test_unbounded_response"
    "CookiesMiddlewareTest"
    # Depends on uvloop
    "test_asyncio_enabled_reactor_different_loop"
    "test_asyncio_enabled_reactor_same_loop"
Loading