2017-05-26 22:55:15 +00:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pytest
|
2020-03-28 01:52:48 +00:00
|
|
|
, requests
|
2017-05-26 22:55:15 +00:00
|
|
|
, unittest2
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ntlm-auth";
|
2020-03-28 01:52:48 +00:00
|
|
|
version = "1.4.0";
|
2017-05-26 22:55:15 +00:00
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jborean93";
|
|
|
|
repo = "ntlm-auth";
|
|
|
|
rev = "v${version}";
|
2020-03-28 01:52:48 +00:00
|
|
|
sha256 = "168k3ygwbvnfcwn7q1nv3vvy6b9jc4cnpix0xgg5j8av7v1x0grn";
|
2017-05-26 22:55:15 +00:00
|
|
|
};
|
|
|
|
|
2020-03-28 01:52:48 +00:00
|
|
|
checkInputs = [ mock pytest requests unittest2 ];
|
2017-05-26 22:55:15 +00:00
|
|
|
propagatedBuildInputs = [ six ];
|
|
|
|
|
|
|
|
# Functional tests require networking
|
|
|
|
checkPhase = ''
|
|
|
|
py.test --ignore=tests/functional/test_iis.py
|
|
|
|
'';
|
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Calculates NTLM Authentication codes";
|
2020-03-28 01:52:48 +00:00
|
|
|
homepage = "https://github.com/jborean93/ntlm-auth";
|
|
|
|
license = licenses.mit;
|
2017-05-26 22:55:15 +00:00
|
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
|
|
platforms = platforms.all;
|
|
|
|
};
|
|
|
|
}
|