nixpkgs/pkgs/development/python-modules/ntlm-auth/default.nix
Frederik Rietdijk 66e059559a Revert "python.pkgs.ntlm-auth: 1.0.3 -> 1.0.4"
This reverts commit 51d9995d043c378e31eea8ef8edecebcccff68ca.

Wrong hash, see https://github.com/NixOS/nixpkgs/issues/26320.
2017-06-06 14:48:42 +02:00

38 lines
808 B
Nix

{ lib
, buildPythonPackage
, fetchFromGitHub
, mock
, pytest
, unittest2
, six
}:
buildPythonPackage rec {
pname = "ntlm-auth";
version = "1.0.3";
name = "${pname}-${version}";
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;
};
}