Blob Blame History Raw
Name:           python-pykeepass
Version:        4.0.7.post1
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.
%global srcversion %{gsub %{version} \.post -post}
Source:         %{url}/archive/v%{srcversion}/pykeepass-%{srcversion}.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-%{srcversion}

%pyproject_buildrequires -x test


%pyproject_save_files -l pykeepass

# This is worthwhile even though we run the tests; tests did not catch a
# missing pykeepass.kdbx_parsing package in the 4.0.7 release, but an import
# check would have.

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

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