2020-04-24 23:36:52 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
2021-04-05 15:23:46 +00:00
|
|
|
, cryptography
|
2020-04-24 23:36:52 +00:00
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
2021-04-05 15:23:46 +00:00
|
|
|
, pytestCheckHook
|
2022-11-27 09:42:12 +00:00
|
|
|
, pythonOlder
|
2020-04-24 23:36:52 +00:00
|
|
|
, requests
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ntlm-auth";
|
2020-07-18 16:06:22 +00:00
|
|
|
version = "1.5.0";
|
2022-11-27 09:42:12 +00:00
|
|
|
format = "setuptools";
|
|
|
|
|
|
|
|
disabled = pythonOlder "3.7";
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jborean93";
|
|
|
|
repo = "ntlm-auth";
|
|
|
|
rev = "v${version}";
|
2022-11-27 09:42:12 +00:00
|
|
|
hash = "sha256-CRBR2eXUGngU7IvGuRfBnvH6QZhhwyh1dgd47VZxtwE=";
|
2020-04-24 23:36:52 +00:00
|
|
|
};
|
|
|
|
|
2021-04-05 15:23:46 +00:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cryptography
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
2023-02-02 18:25:31 +00:00
|
|
|
nativeCheckInputs = [
|
2021-04-05 15:23:46 +00:00
|
|
|
mock
|
|
|
|
pytestCheckHook
|
|
|
|
requests
|
|
|
|
];
|
|
|
|
|
2022-11-27 09:42:12 +00:00
|
|
|
pythonImportsCheck = [
|
|
|
|
"ntlm_auth"
|
|
|
|
];
|
|
|
|
|
|
|
|
disabledTests = [
|
|
|
|
# Tests are outdated as module will be replaced by pyspnego
|
|
|
|
"test_authenticate_message"
|
|
|
|
"test_authenticate_without_domain_workstation"
|
|
|
|
"test_create_authenticate_message"
|
|
|
|
"test_get_"
|
|
|
|
"test_lm_v"
|
|
|
|
"test_nt_"
|
|
|
|
"test_ntlm_context"
|
|
|
|
"test_ntowfv"
|
|
|
|
];
|
2020-04-24 23:36:52 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Calculates NTLM Authentication codes";
|
|
|
|
homepage = "https://github.com/jborean93/ntlm-auth";
|
2022-11-27 09:42:12 +00:00
|
|
|
changelog = "https://github.com/jborean93/ntlm-auth/releases/tag/v${version}";
|
2020-04-24 23:36:52 +00:00
|
|
|
license = licenses.mit;
|
|
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
|
|
};
|
|
|
|
}
|