File python-scim2-filter-parser.spec of Package python-scim2-filter-parser
#
# spec file for package python-scim2-filter-parser
#
# Copyright (c) 2026 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/
#
Name: python-scim2-filter-parser
Version: 0.7.0
Release: 0
Summary: SCIM 2.0 Filter Parser
License: MIT
URL: https://github.com/15five/scim2-filter-parser
Source: https://files.pythonhosted.org/packages/source/s/scim2-filter-parser/scim2_filter_parser-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module poetry >= 0.12}
BuildRequires: %{python_module sly == 0.5}
BuildRequires: alts
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: alts
Requires: python-sly = 0.5
BuildArch: noarch
%python_subpackages
%description
A customizable parser/transpiler for SCIM2.0 filters.
SCIM 2.0 defines queries that look like this:
'emails[type eq "work" and value co "@example.com"] or ims[type eq "xmpp" and value co "@foo.com"]'
These can be hard to work with and covert into SQL to run against a database.
That's where SCIM 2.0 Filter Parser (SFP) can help.
SFP is broken up into four modules, each handling a different part of
translating a SCIM call into a SQL query.
%prep
%autosetup -n scim2_filter_parser-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/sfp-lexer
%python_clone -a %{buildroot}%{_bindir}/sfp-parser
%python_clone -a %{buildroot}%{_bindir}/sfp-transpiler
%python_clone -a %{buildroot}%{_bindir}/sfp-query
%python_group_libalternatives sfp-lexer sfp-parser sfp-transpiler sfp-query
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%python_alternative %{_bindir}/sfp-lexer
%python_alternative %{_bindir}/sfp-parser
%python_alternative %{_bindir}/sfp-transpiler
%python_alternative %{_bindir}/sfp-query
%{python_sitelib}/scim2_filter_parser
%{python_sitelib}/scim2_filter_parser-%{version}.dist-info
%changelog