File python-normality.spec of Package python-normality

# spec file for package python-normality
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
# 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

Name:           python-normality
Version:        0.3.9
Release:        0
License:        MIT
Summary:        Micro-library to normalize text strings
Group:          Development/Languages/Python
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-chardet
BuildRequires:  python-six
BuildRequires:  python-nose
Requires:       python-chardet
Requires:       python-six
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

Normality is a Python micro-package that contains a small set of text normalization functions for easier re-use. These functions accept a snippet of unicode or utf-8 encoded text and remove various classes of characters, such as diacritics, punctuation etc. This is useful as a preparation to further text analysis.

%setup -q -n normality-%{version}

python build

python install --prefix=%{_prefix} --root=%{buildroot}
#NOTE: tests only work using nose
python nosetests