Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37749724
en ru br
Репозитории ALT

Группа :: Development/Python3
Пакет: python3-module-libfaketime

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   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

Полный changelog можно просмотреть здесь

 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin