File python-scmsrht.spec of Package python-scmsrht

%define skip_python312 1

Name:                   python-scmsrht
Version:                0.22.23
Release:                2
Summary:                Shared code for sr.ht
URL:                    https://git.sr.ht/~sircmpwn/scm.sr.ht
License:                AGPL-3.0-or-later
Source0:                scm.sr.ht-%{version}.tar.gz
BuildRequires:          %{python_module setuptools}
BuildRequires:          %{pythons}
BuildRequires:          fdupes
BuildRequires:          unzip
BuildRequires:          npm
BuildArch:              noarch
Requires:               %{python_module srht}
%python_subpackages

%description
Shared support code for sr.ht source control services.

%prep
%setup -q -n scm.sr.ht-%{version}

%build
export PKGVER="%{version}"
%python_build

%install
export PKGVER="%{version}"
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}

%files %{python_files}
%license LICENSE
%{python_sitelib}/scmsrht
%{python_sitelib}/scmsrht-%{version}*-info

%changelog
openSUSE Build Service is sponsored by