]> git.pld-linux.org Git - packages/python3-pytest-freezegun.git/blob - python3-pytest-freezegun.spec
rebuild with python 3.10
[packages/python3-pytest-freezegun.git] / python3-pytest-freezegun.spec
1 #
2 # Conditional build:
3 %bcond_with     tests   # unit tests (not included in sdist)
4
5 Summary:        Wrap tests with fixtures in freeze_time
6 Summary(pl.UTF-8):      Obudowywanie testów z wyposażeniem w zamrożonym czasie
7 Name:           python3-pytest-freezegun
8 Version:        0.4.2
9 Release:        3
10 License:        MIT
11 Group:          Libraries/Python
12 #Source0Download: https://pypi.org/simple/pytest-freezegun/
13 Source0:        https://files.pythonhosted.org/packages/source/p/pytest-freezegun/pytest-freezegun-%{version}.zip
14 # Source0-md5:  ab9915f280a4e37fafc118af1311cc41
15 URL:            https://pypi.org/project/pytest-freezegun/
16 BuildRequires:  python3-modules >= 1:3.5
17 BuildRequires:  python3-setuptools
18 %if %{with tests}
19 BuildRequires:  python3-freezegun >= 0.3
20 BuildRequires:  python3-pytest >= 3.0.0
21 %endif
22 BuildRequires:  rpm-pythonprov
23 BuildRequires:  rpmbuild(macros) >= 1.714
24 Requires:       python3-modules >= 1:3.5
25 BuildArch:      noarch
26 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
27
28 %description
29 Wrap tests with fixtures in freeze_time.
30
31 %description -l pl.UTF-8
32 Obudowywanie testów z wyposażeniem w czasie zamrożonym przez
33 freeze_time.
34
35 %prep
36 %setup -q -n pytest-freezegun-%{version}
37
38 %build
39 %py3_build
40
41 %install
42 rm -rf $RPM_BUILD_ROOT
43
44 %py3_install
45
46 %clean
47 rm -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.093414 seconds and 3 git commands to generate.