diff options
Diffstat (limited to 'nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix')
-rw-r--r-- | nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix b/nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix new file mode 100644 index 000000000000..e4bbe0fb4302 --- /dev/null +++ b/nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix @@ -0,0 +1,36 @@ +{ lib +, buildPythonPackage +, fetchFromGitHub +, mock +, pytest +, unittest2 +, six +}: + +buildPythonPackage rec { + pname = "ntlm-auth"; + version = "1.0.3"; + + src = fetchFromGitHub { + owner = "jborean93"; + repo = "ntlm-auth"; + rev = "v${version}"; + sha256 = "09f2g4ivfi9lh1kr30hlg0q4n2imnvmd79w83gza11q9nmhhiwpz"; + }; + + 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; + }; +} |