mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-21 21:23:06 +00:00
97f09ff09f
On master and 20.03, this is failing to build on `python 3.8`. https://hydra.nixos.org/build/115517329 https://hydra.nixos.org/build/114714922 CC @NixOS/nixos-release-managers ZHF: #80379 Co-Authored-By: Niklas Hambüchen <mail@nh2.me>
38 lines
796 B
Nix
38 lines
796 B
Nix
{ lib
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, mock
|
|
, pytest
|
|
, requests
|
|
, unittest2
|
|
, six
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "ntlm-auth";
|
|
version = "1.4.0";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "jborean93";
|
|
repo = "ntlm-auth";
|
|
rev = "v${version}";
|
|
sha256 = "168k3ygwbvnfcwn7q1nv3vvy6b9jc4cnpix0xgg5j8av7v1x0grn";
|
|
};
|
|
|
|
checkInputs = [ mock pytest requests 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.mit;
|
|
maintainers = with maintainers; [ elasticdog ];
|
|
platforms = platforms.all;
|
|
};
|
|
}
|