Blob Blame History Raw
Name:           python-pykeepass
Version:        4.0.6
Release:        %autorelease
Epoch:          1
Summary:        Python library to interact with keepass databases

# The entire source is GPL-3.0-only, except:
# MIT:
#   pykeepass/kdbx_parsing/
License:        GPL-3.0-only AND MIT
# The GitHub archive has tests; the PyPI sdist does not.
Source:         %{url}/archive/v%{version}/pykeepass-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

%global common_description %{expand:
This library allows you to write entries to a KeePass database.}

%description %{common_description}

%package -n     python3-pykeepass
Summary:        %{summary}
%description -n python3-pykeepass %{common_description}

%autosetup -n pykeepass-%{version}

# Convert exact-version pins, which we cannot respect, to lower bounds.
sed -r -i 's/==/>=/' requirements.txt



%pyproject_save_files pykeepass

%{python3} -m unittest discover -s tests -v

%files -n python3-pykeepass -f %{pyproject_files}
%doc CHANGELOG.rst
%doc README.rst