1
0
Files
python-ntlm-auth/python-ntlm-auth.spec
Steve Kowalik 6d029934d6 - Update to 1.5.0:
* Added the `mic_present` property to the `NtlmContext` class to determine
    if a MIC has been added to the authentication message.
  * Added the `sign` and `verify` function to the `NtlmContext` to sign data
    and verify signatures.
  * Added the `reset_rc4_state` function to the `NtlmContext` to allow a
    caller to reset the incoming and outgoing RC4 cipher.
  * Added the `NTLMSSP_NEGOTIATE_UNICODE` flag to the negotiate message to
    ensure the challenge and authentication message's text fields can be
    unicode encoded

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ntlm-auth?expand=0&rev=13
2020-07-15 05:55:24 +00:00

64 lines
1.9 KiB
RPMSpec

#
# spec file for package python-ntlm-auth
#
# Copyright (c) 2020 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-ntlm-auth
Version: 1.5.0
Release: 0
Summary: NTLM low-level Python library
License: MIT
URL: https://github.com/jborean93/ntlm-auth
Source: https://github.com/jborean93/ntlm-auth/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: %{python_module cryptography}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module requests}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Recommends: python-cryptography
Suggests: python-ordereddict
BuildArch: noarch
%python_subpackages
%description
This library handles the low-level details of NTLM authentication for
use in authenticating with a service that uses NTLM. It will create
and parse the 3 different message types in the order required and
produce a base64 encoded value that can be attached to the HTTP
header.
%prep
%setup -q -n ntlm-auth-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
%pytest
%files %{python_files}
%license LICENSE
%doc CHANGES.md README.md
%{python_sitelib}/*
%changelog