]> git.pld-linux.org Git - packages/python3-pytest-freezegun.git/blame - python3-pytest-freezegun.spec
rebuild with tests and docs
[packages/python3-pytest-freezegun.git] / python3-pytest-freezegun.spec
CommitLineData
abfce1d6
JB
1#
2# Conditional build:
3%bcond_with tests # unit tests (not included in sdist)
4
5Summary: Wrap tests with fixtures in freeze_time
6Summary(pl.UTF-8): Obudowywanie testów z wyposażeniem w zamrożonym czasie
7Name: python3-pytest-freezegun
8Version: 0.4.2
94fd9d9f 9Release: 6
abfce1d6
JB
10License: MIT
11Group: Libraries/Python
12#Source0Download: https://pypi.org/simple/pytest-freezegun/
13Source0: https://files.pythonhosted.org/packages/source/p/pytest-freezegun/pytest-freezegun-%{version}.zip
14# Source0-md5: ab9915f280a4e37fafc118af1311cc41
15URL: https://pypi.org/project/pytest-freezegun/
16BuildRequires: python3-modules >= 1:3.5
17BuildRequires: python3-setuptools
18%if %{with tests}
19BuildRequires: python3-freezegun >= 0.3
20BuildRequires: python3-pytest >= 3.0.0
21%endif
22BuildRequires: rpm-pythonprov
23BuildRequires: rpmbuild(macros) >= 1.714
24Requires: python3-modules >= 1:3.5
25BuildArch: noarch
26BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28%description
29Wrap tests with fixtures in freeze_time.
30
31%description -l pl.UTF-8
32Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
33freeze_time.
34
35%prep
36%setup -q -n pytest-freezegun-%{version}
37
38%build
39%py3_build
40
41%install
42rm -rf $RPM_BUILD_ROOT
43
44%py3_install
45
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
51%doc LICENSE README.rst
52%{py3_sitescriptdir}/pytest_freezegun.py
53%{py3_sitescriptdir}/__pycache__/pytest_freezegun.cpython-*.py[co]
54%{py3_sitescriptdir}/pytest_freezegun-%{version}-py*.egg-info
This page took 0.08391 seconds and 4 git commands to generate.