1{ lib
2, buildPythonPackage
3, fetchFromGitHub
4, mock
5, pytest
6, unittest2
7, six
8}:
9
10buildPythonPackage rec {
11 pname = "ntlm-auth";
12 version = "1.0.3";
13
14 src = fetchFromGitHub {
15 owner = "jborean93";
16 repo = "ntlm-auth";
17 rev = "v${version}";
18 sha256 = "09f2g4ivfi9lh1kr30hlg0q4n2imnvmd79w83gza11q9nmhhiwpz";
19 };
20
21 checkInputs = [ mock pytest unittest2 ];
22 propagatedBuildInputs = [ six ];
23
24 # Functional tests require networking
25 checkPhase = ''
26 py.test --ignore=tests/functional/test_iis.py
27 '';
28
29 meta = with lib; {
30 description = "Calculates NTLM Authentication codes";
31 homepage = https://github.com/jborean93/ntlm-auth;
32 license = licenses.lgpl3;
33 maintainers = with maintainers; [ elasticdog ];
34 platforms = platforms.all;
35 };
36}