File python-matrix-synapse-ldap3.spec of Package python-matrix-synapse-ldap3
#
# spec file for package python-matrix-synapse-ldap3
#
# Copyright (c) 2023 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-%{**}}
# There is no longer python2-matrix-synapse, skip python2
%define skip_python2 1
%define github_user matrix-org
%define short_name matrix-synapse-ldap3
Name: python-matrix-synapse-ldap3
Version: 0.2.2
Release: 0
Summary: An LDAP3 auth provider for Synapse
License: Apache-2.0
URL: https://github.com/matrix-org/matrix-synapse-ldap3
Source: https://files.pythonhosted.org/packages/source/m/matrix-synapse-ldap3/matrix-synapse-ldap3-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 39.2.0}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module ldap3 >= 2.8}
BuildRequires: %{python_module service_identity}
BuildRequires: %{python_module Twisted >= 15.1.0}
BuildRequires: %{python_module ldaptor}
BuildRequires: matrix-synapse
# /SECTION
BuildRequires: fdupes
Requires: python-ldap3 >= 2.8
Requires: python-service_identity
Requires: python-Twisted >= 15.1.0
Suggests: python-matrix-synapse
Suggests: python-tox
Suggests: python-ldaptor
Suggests: python-mypy == 0.910
Suggests: python-types-setuptools
Suggests: python-black == 22.3.0
Suggests: python-flake8 == 4.0.1
Suggests: python-isort == 5.9.3
BuildArch: noarch
%python_subpackages
%description
An LDAP3 auth provider for Synapse
%prep
%autosetup -p1 -n matrix-synapse-ldap3-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
#%%pytest
%pyunittest -v
%files %{python_files}
%doc README.rst
%license LICENSE
%{python_sitelib}/__pycache__/*
%{python_sitelib}/ldap_auth_provider.py
%{python_sitelib}/matrix_synapse_ldap3-%{version}.dist-info/
%changelog