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