depot/third_party/nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix
Default email a71eb02b76 Project import generated by Copybara.
GitOrigin-RevId: a115bb9bd56831941be3776c8a94005867f316a7
2022-11-27 10:42:12 +01:00

58 lines
1.2 KiB
Nix

{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, mock
, pytestCheckHook
, pythonOlder
, requests
}:
buildPythonPackage rec {
pname = "ntlm-auth";
version = "1.5.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "jborean93";
repo = "ntlm-auth";
rev = "v${version}";
hash = "sha256-CRBR2eXUGngU7IvGuRfBnvH6QZhhwyh1dgd47VZxtwE=";
};
propagatedBuildInputs = [
cryptography
];
checkInputs = [
mock
pytestCheckHook
requests
];
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"
];
meta = with lib; {
description = "Calculates NTLM Authentication codes";
homepage = "https://github.com/jborean93/ntlm-auth";
changelog = "https://github.com/jborean93/ntlm-auth/releases/tag/v${version}";
license = licenses.mit;
maintainers = with maintainers; [ elasticdog ];
};
}