2017-05-27 00:55:15 +02:00
|
|
|
{ lib
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, mock
|
|
|
|
, pytest
|
|
|
|
, unittest2
|
|
|
|
, six
|
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "ntlm-auth";
|
2017-06-06 11:33:45 +02:00
|
|
|
version = "1.0.4";
|
2017-05-27 00:55:15 +02:00
|
|
|
name = "${pname}-${version}";
|
|
|
|
|
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "jborean93";
|
|
|
|
repo = "ntlm-auth";
|
|
|
|
rev = "v${version}";
|
2017-06-06 11:33:45 +02:00
|
|
|
sha256 = "3d411413f1309fcd443095d57ab169b637e5b57ce701ac7ae8dbf572cb3533c0";
|
2017-05-27 00:55:15 +02: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;
|
|
|
|
};
|
|
|
|
}
|