File python3-typing.spec of Package python3-typing

#
# spec file for package python3-typing
#
# Copyright (c) 2016 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 http://bugs.opensuse.org/


Name:           python3-typing
Version:        3.6.1
Release:        0
License:        Python-2.0
Summary:        Backport of Python 3.5 Type Hints
Url:            https://docs.python.org/3.5/library/typing.html
Group:          Development/Languages/Python
Source:         https://files.pythonhosted.org/packages/source/t/typing/typing-%{version}.tar.gz
Source1:	mod_generics_cache.py
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-testsuite
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildArch:      noarch

%description
This is a backport of the standard library typing module to Python
versions older than 3.5.

Typing defines a standard notation for Python function and variable
type annotations. The notation can be used for documenting code in a
concise, standard format, and it has been designed to also be used by
static and runtime type checkers, static analyzers, IDEs and other
tools.

%prep
%setup -q -n typing-%{version}
cp %{SOURCE1} src

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%check
python3 src/test_typing.py

%files
%defattr(-,root,root,-)
%doc LICENSE README.rst
%{python3_sitelib}/*

%changelog