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

43 lines
771 B
Nix
Raw Normal View History

{ lib
, buildPythonPackage
2021-04-02 10:39:16 +01:00
, cryptography
, fetchFromGitHub
, mock
2021-04-02 10:39:16 +01:00
, pytestCheckHook
, requests
, six
}:
buildPythonPackage rec {
pname = "ntlm-auth";
version = "1.5.0";
src = fetchFromGitHub {
owner = "jborean93";
repo = "ntlm-auth";
rev = "v${version}";
sha256 = "00dpf5bfsy07frsjihv1k10zmwcyq4bvkilbxha7h6nlwpcm2409";
};
2021-04-02 10:39:16 +01:00
propagatedBuildInputs = [
cryptography
six
];
2021-04-02 10:39:16 +01:00
checkInputs = [
mock
pytestCheckHook
requests
];
pythonImportsCheck = [ "ntlm_auth" ];
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;
};
}