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

Merge pull request #281309 from fabaff/impacket-tests

python311Packages.impacket: enable tests
parents cbfd8f68 eeadc6c0
Loading
Loading
Loading
Loading
+17 −4
Original line number Diff line number Diff line
@@ -4,19 +4,21 @@
, dsinternals
, fetchPypi
, flask
, ldap3
, ldapdomaindump
, pyasn1
, pycryptodomex
, pyopenssl
, pythonOlder
, setuptools
, pytestCheckHook
, six
}:

buildPythonPackage rec {
  pname = "impacket";
  version = "0.11.0";
  format = "setuptools";
  pyproject = true;

  disabled = pythonOlder "3.7";

@@ -25,25 +27,36 @@ buildPythonPackage rec {
    hash = "sha256-7kA5tNKu3o9fZEeLxZ+qyGA2eWviTeqNwY8An7CQXko=";
  };

  nativeBuildInputs = [
    setuptools
  ];

  propagatedBuildInputs = [
    charset-normalizer
    dsinternals
    flask
    ldap3
    ldapdomaindump
    pyasn1
    pycryptodomex
    pyopenssl
    setuptools
    six
  ];

  # RecursionError: maximum recursion depth exceeded
  doCheck = false;
  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "impacket"
  ];

  disabledTestPaths = [
    # Skip all RPC related tests
    "tests/dcerpc/"
    "tests/SMB_RPC/"
  ];

  meta = with lib; {
    description = "Network protocols Constructors and Dissectors";
    homepage = "https://github.com/SecureAuthCorp/impacket";