Summary:        Version numbering for anarchists and software realists
Name:           python3-looseversion
Version:        1.3.0
Release:        1%{?dist}
License:        Python Software Foundation License
Group:          Development/Languages/Python
Vendor:         VMware, Inc.
Distribution:   Photon
Url:            https://github.com/effigies/looseversion

Source0:        https://files.pythonhosted.org/packages/64/7e/f13dc08e0712cc2eac8e56c7909ce2ac280dbffef2ffd87bd5277ce9d58b/looseversion-%{version}.tar.gz
%define sha512  looseversion=a54c788ba698b07308cfc75b5afba2cda59451d72d178be92b43c433deac9b24bffafa26f121af79a3d42eca8f83e7f50477498e1a17aec47cc213d39aa47eb2

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-pip
BuildRequires:  python3-hatchling
BuildRequires:  python3-pathspec
BuildRequires:  python3-pluggy
BuildRequires:  python3-packaging

Requires:       python3

BuildArch:      noarch

%description
Version numbering for anarchists and software realists

%prep
%autosetup -p1 -n looseversion-%{version}

%build
%pyproject_wheel

%install
%pyproject_install

%check
pip3 install tox
tox

%files
%defattr(-,root,root)
%{python3_sitelib}/*

%changelog
* Thu Apr 18 2024 Prafful Mehrotra <prafful.mehrotra@broadcom.com> 1.3.0-1
- Adding looseversion python package to Photon 5