Files
nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix
T

38 lines
796 B
Nix
Raw Normal View History

2017-05-26 15:55:15 -07:00
{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytest
, requests
2017-05-26 15:55:15 -07:00
, unittest2
, six
}:
buildPythonPackage rec {
pname = "ntlm-auth";
2020-07-06 10:01:18 +00:00
version = "1.5.0";
2017-05-26 15:55:15 -07:00
src = fetchFromGitHub {
owner = "jborean93";
repo = "ntlm-auth";
rev = "v${version}";
2020-07-06 10:01:18 +00:00
sha256 = "00dpf5bfsy07frsjihv1k10zmwcyq4bvkilbxha7h6nlwpcm2409";
2017-05-26 15:55:15 -07:00
};
checkInputs = [ mock pytest requests unittest2 ];
2017-05-26 15:55:15 -07:00
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.mit;
2017-05-26 15:55:15 -07:00
maintainers = with maintainers; [ elasticdog ];
platforms = platforms.all;
};
}