# # spec file for package python-pony # # Copyright (c) 2018 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/ %{?!python_module:%define python_module() python-%{**} python3-%{**}} Name: python-pony Version: 0.7.6 Release: 0 License: Apache-2.0 Summary: Pony Object-Relational Mapper Url: https://ponyorm.com Group: Development/Languages/Python Source: https://files.pythonhosted.org/packages/source/p/pony/pony-%{version}.tar.gz Source99: https://raw.githubusercontent.com/ponyorm/pony/orm/LICENSE #Patch0: fix-tests.patch BuildRequires: python-rpm-macros BuildRequires: dos2unix BuildRequires: %{python_module setuptools} BuildRequires: fdupes BuildArch: noarch %python_subpackages %description Pony ORM is a object-relational mapper for Python. Using Pony, developers can create and maintain database-oriented software applications . One of the most interesting features of Pony is its ability to write queries to the database using generator expressions. Pony then analyzes the abstract syntax tree of a generator and translates it to its SQL equivalent. %prep %setup -q -n pony-%{version} #%%patch0 -p1 cp %{S:99} . dos2unix README.md %build %python_build %install %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} #%%check # Disabled until https://github.com/ponyorm/pony/issues/385 is fixed #%%python_exec setup.py test %files %{python_files} %doc README.md %license LICENSE %{python_sitelib}/* %changelog