Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 20.09 796 B view raw
1{ lib 2, buildPythonPackage 3, fetchFromGitHub 4, mock 5, pytest 6, requests 7, unittest2 8, six 9}: 10 11buildPythonPackage rec { 12 pname = "ntlm-auth"; 13 version = "1.5.0"; 14 15 src = fetchFromGitHub { 16 owner = "jborean93"; 17 repo = "ntlm-auth"; 18 rev = "v${version}"; 19 sha256 = "00dpf5bfsy07frsjihv1k10zmwcyq4bvkilbxha7h6nlwpcm2409"; 20 }; 21 22 checkInputs = [ mock pytest requests 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.mit; 34 maintainers = with maintainers; [ elasticdog ]; 35 platforms = platforms.all; 36 }; 37}