Group :: Development/Python3
RPM: python3-module-libfaketime
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
%define _unpackaged_files_terminate_build 1
%define oname libfaketime
Name: python3-module-libfaketime
Version: 2.0.0
Release: alt2
Summary: A fast alternative to freezegun that wraps libfaketime
License: GPLv2
Group: Development/Python3
Url: https://pypi.org/project/libfaketime/
# Source-url: %__pypi_url %oname
Source: %name-%version.tar
BuildRequires(pre): rpm-build-intro >= 2.2.5
BuildRequires(pre): rpm-build-python3
Requires: libfaketime >= 0.9.9
BuildArch: noarch
%description
python-libfaketime is a wrapper of libfaketime for python. Some brief details:
* Mostly compatible with freezegun.
* Microsecond resolution.
* Accepts datetimes and strings that can be parsed by dateutil.
* Not threadsafe.
%prep
%setup
# use system library
subst "s|: _get_lib_path()|: '%_libdir/faketime'|" libfaketime/__init__.py
%build
%python3_build
%install
%python3_install
# use system library
rm -rv %buildroot%python3_sitelibdir/libfaketime/vendor/
%files
%doc *.rst
%_bindir/python-libfaketime
%python3_sitelibdir/*
%changelog
…
Full changelog you can see here
%define oname libfaketime
Name: python3-module-libfaketime
Version: 2.0.0
Release: alt2
Summary: A fast alternative to freezegun that wraps libfaketime
License: GPLv2
Group: Development/Python3
Url: https://pypi.org/project/libfaketime/
# Source-url: %__pypi_url %oname
Source: %name-%version.tar
BuildRequires(pre): rpm-build-intro >= 2.2.5
BuildRequires(pre): rpm-build-python3
Requires: libfaketime >= 0.9.9
BuildArch: noarch
%description
python-libfaketime is a wrapper of libfaketime for python. Some brief details:
* Mostly compatible with freezegun.
* Microsecond resolution.
* Accepts datetimes and strings that can be parsed by dateutil.
* Not threadsafe.
%prep
%setup
# use system library
subst "s|: _get_lib_path()|: '%_libdir/faketime'|" libfaketime/__init__.py
%build
%python3_build
%install
%python3_install
# use system library
rm -rv %buildroot%python3_sitelibdir/libfaketime/vendor/
%files
%doc *.rst
%_bindir/python-libfaketime
%python3_sitelibdir/*
%changelog
…
Full changelog you can see here