Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Backports:SLE-15:Update
python-arrow
python-arrow.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-arrow.spec of Package python-arrow
# # spec file for package python-arrow # # 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-%{**}} %bcond_without python2 Name: python-arrow Version: 0.12.1 Release: 0 Summary: Better dates and times for Python License: Apache-2.0 Group: Development/Languages/Python Url: http://crsmithdev.com/arrow Source: https://files.pythonhosted.org/packages/source/a/arrow/arrow-%{version}.tar.gz BuildRequires: %{python_module chai} BuildRequires: %{python_module devel} BuildRequires: %{python_module nose} BuildRequires: %{python_module python-dateutil} BuildRequires: %{python_module simplejson} BuildRequires: fdupes BuildRequires: python-rpm-macros %if %{with python2} BuildRequires: python-backports.functools_lru_cache %endif %ifpython2 Requires: python-backports.functools_lru_cache %endif Requires: python-python-dateutil BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch %python_subpackages %description Arrow is a Python library that offers a sensible, human-friendly approach to creating, manipulating, formatting and converting dates, times, and timestamps. It implements and updates the datetime type, plugging gaps in functionality, and provides an intelligent module API that supports many common creation scenarios. Simply put, it helps you work with dates and times with fewer imports and a lot less code. Arrow is heavily inspired by moment.js and requests. %prep %setup -q -n arrow-%{version} rm -rf arrow.egg-info %build %python_build %install %python_install %python_expand %fdupes -s %{buildroot}%{$python_sitelib} %check %python_expand PYTHONPATH="%{buildroot}%{$python_sitelib}:$PYTHONPATH" $python %{_bindir}/nosetests %files %{python_files} %defattr(-,root,root,-) %doc LICENSE README.rst HISTORY.md %{python_sitelib}/* %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor