summary refs log blame commit diff
path: root/pkgs/development/python-modules/pyspnego/default.nix
blob: 2f8e775e340436cf211ca43d0bec3662e883ebe8 (plain) (tree)










































                                                                    
{ lib
, buildPythonPackage
, cryptography
, fetchFromGitHub
, pytest-mock
, pytestCheckHook
, pythonOlder
, glibcLocales
}:

buildPythonPackage rec {
  pname = "pyspnego";
  version = "0.1.6";
  disabled = pythonOlder "3.6";

  src = fetchFromGitHub {
    owner = "jborean93";
    repo = pname;
    rev = "v${version}";
    sha256 = "0pfh2x0539f0k2qi2pbjm64b2fqp64c63xxpinvg1yfaw915kgpb";
  };

  propagatedBuildInputs = [
    cryptography
  ];

  checkInputs = [
    glibcLocales
    pytest-mock
    pytestCheckHook
  ];

  LC_ALL = "en_US.UTF-8";

  pythonImportsCheck = [ "spnego" ];

  meta = with lib; {
    description = "Python SPNEGO authentication library";
    homepage = "Python SPNEGO authentication library";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
  };
}