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 name = "${pname}-${version}"; 14 15 src = fetchFromGitHub { 16 owner = "jborean93"; 17 repo = "ntlm-auth"; 18 rev = "v${version}"; 19 sha256 = "09f2g4ivfi9lh1kr30hlg0q4n2imnvmd79w83gza11q9nmhhiwpz"; 20 }; 21 22 checkInputs = [ mock pytest unittest2 ]; 23 propagatedBuildInputs = [ six ]; 24 25 # Functional tests require networking 26 checkPhase = '' 27 py.test --ignore=tests/functional/test_iis.py 28 ''; 29 30 meta = with lib; { 31 description = "Calculates NTLM Authentication codes"; 32 homepage = https://github.com/jborean93/ntlm-auth; 33 license = licenses.lgpl3; 34 maintainers = with maintainers; [ elasticdog ]; 35 platforms = platforms.all; 36 }; 37}