2022-04-27 09:35:20 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2023-10-09 19:29:22 +00:00
|
|
|
, charset-normalizer
|
|
|
|
, dsinternals
|
2022-04-27 09:35:20 +00:00
|
|
|
, fetchPypi
|
|
|
|
, flask
|
2024-01-25 14:12:00 +00:00
|
|
|
, ldap3
|
2022-04-27 09:35:20 +00:00
|
|
|
, ldapdomaindump
|
|
|
|
, pyasn1
|
|
|
|
, pycryptodomex
|
|
|
|
, pyopenssl
|
|
|
|
, pythonOlder
|
|
|
|
, setuptools
|
2024-01-25 14:12:00 +00:00
|
|
|
, pytestCheckHook
|
2022-04-27 09:35:20 +00:00
|
|
|
, six
|
|
|
|
}:
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "impacket";
|
2023-10-09 19:29:22 +00:00
|
|
|
version = "0.11.0";
|
2024-01-25 14:12:00 +00:00
|
|
|
pyproject = true;
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2023-10-09 19:29:22 +00:00
|
|
|
hash = "sha256-7kA5tNKu3o9fZEeLxZ+qyGA2eWviTeqNwY8An7CQXko=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
build-system = [
|
2024-01-25 14:12:00 +00:00
|
|
|
setuptools
|
|
|
|
];
|
|
|
|
|
2024-04-21 15:54:59 +00:00
|
|
|
dependencies = [
|
2023-10-09 19:29:22 +00:00
|
|
|
charset-normalizer
|
|
|
|
dsinternals
|
2022-04-27 09:35:20 +00:00
|
|
|
flask
|
2024-01-25 14:12:00 +00:00
|
|
|
ldap3
|
2022-04-27 09:35:20 +00:00
|
|
|
ldapdomaindump
|
|
|
|
pyasn1
|
|
|
|
pycryptodomex
|
|
|
|
pyopenssl
|
2024-04-21 15:54:59 +00:00
|
|
|
setuptools
|
2022-04-27 09:35:20 +00:00
|
|
|
six
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
nativeCheckInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"impacket"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2024-01-25 14:12:00 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# Skip all RPC related tests
|
|
|
|
"tests/dcerpc/"
|
|
|
|
"tests/SMB_RPC/"
|
|
|
|
];
|
|
|
|
|
2020-04-24 23:36:52 +00:00
|
|
|
meta = with lib; {
|
|
|
|
description = "Network protocols Constructors and Dissectors";
|
2021-06-28 23:13:55 +00:00
|
|
|
homepage = "https://github.com/SecureAuthCorp/impacket";
|
2023-10-09 19:29:22 +00:00
|
|
|
changelog = "https://github.com/fortra/impacket/releases/tag/impacket_"
|
|
|
|
+ replaceStrings [ "." ] [ "_" ] version;
|
2020-04-24 23:36:52 +00:00
|
|
|
# Modified Apache Software License, Version 1.1
|
|
|
|
license = licenses.free;
|
2023-10-09 19:29:22 +00:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
}
|