File nanoid.spec of Package python-nanoid
#
# spec file for package python-nanoid
#
# Copyright (c) 2022 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-nanoid
Version: 2.0.0
Release: 0
Summary: A tiny, secure, URL-friendly, unique string ID generator for Python
License: MIT
URL: https://github.com/puyuan/py-nanoid
Source: https://files.pythonhosted.org/packages/source/n/nanoid/nanoid-%{version}.tar.gz
Source1: LICENSE
BuildRequires: python-rpm-macros
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildArch: noarch
%python_subpackages
%description
A tiny, secure, URL-friendly, unique string ID generator for Python.
* Safe. It uses cryptographically strong random APIs and tests
distribution of symbols;
* Compact. It uses a larger alphabet than UUID (A-Za-z0-9_-).
So ID size is reduced from 36 to 21 symbols.
%prep
%setup -q -n nanoid-%{version}
cp %{SOURCE1} .
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%license LICENSE
%doc README.md
%{python_sitelib}/nanoid
%{python_sitelib}/nanoid-%{version}*-info
%changelog