2015-12-07 08:44:54 +00:00
|
|
|
#
|
|
|
|
# spec file for package python-statsd
|
|
|
|
#
|
2022-04-19 14:09:45 +00:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2015-12-07 08:44:54 +00:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2018-12-04 14:07:47 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2017-02-14 21:52:44 +00:00
|
|
|
#
|
2015-12-07 08:44:54 +00:00
|
|
|
|
|
|
|
|
2017-08-22 06:18:06 +00:00
|
|
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
2015-12-07 08:44:54 +00:00
|
|
|
Name: python-statsd
|
2019-02-25 08:52:11 +00:00
|
|
|
Version: 3.3.0
|
2015-12-07 08:44:54 +00:00
|
|
|
Release: 0
|
|
|
|
Summary: A simple statsd client
|
2017-02-14 21:52:44 +00:00
|
|
|
License: MIT
|
2015-12-07 08:44:54 +00:00
|
|
|
Group: Development/Languages/Python
|
2018-12-04 17:24:07 +00:00
|
|
|
URL: https://github.com/jsocol/pystatsd
|
2017-08-22 06:18:06 +00:00
|
|
|
Source: https://files.pythonhosted.org/packages/source/s/statsd/statsd-%{version}.tar.gz
|
2021-10-05 04:44:38 +00:00
|
|
|
Patch0: remove-nose.patch
|
|
|
|
BuildRequires: %{python_module pytest}
|
2017-08-22 06:18:06 +00:00
|
|
|
BuildRequires: %{python_module setuptools}
|
2019-02-25 08:52:11 +00:00
|
|
|
BuildRequires: fdupes
|
2017-08-22 06:18:06 +00:00
|
|
|
BuildRequires: python-rpm-macros
|
2015-12-07 08:44:54 +00:00
|
|
|
BuildArch: noarch
|
2017-08-22 06:18:06 +00:00
|
|
|
%python_subpackages
|
2015-12-07 08:44:54 +00:00
|
|
|
|
|
|
|
%description
|
2017-02-14 21:52:44 +00:00
|
|
|
statsd is a front-end to Graphite. This is a Python client
|
2015-12-07 08:44:54 +00:00
|
|
|
for the statsd daemon.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n statsd-%{version}
|
2021-10-05 04:44:38 +00:00
|
|
|
%autopatch -p1
|
2015-12-07 08:44:54 +00:00
|
|
|
|
|
|
|
%build
|
2017-08-22 06:18:06 +00:00
|
|
|
%python_build
|
2015-12-07 08:44:54 +00:00
|
|
|
|
|
|
|
%install
|
2017-08-22 06:18:06 +00:00
|
|
|
%python_install
|
2019-02-25 08:52:11 +00:00
|
|
|
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
|
|
|
|
|
|
|
%check
|
2022-04-19 14:09:45 +00:00
|
|
|
# https://github.com/jsocol/pystatsd/pull/150
|
|
|
|
sed -i 's:import mock:from unittest import mock:' statsd/tests.py
|
2021-10-05 04:44:38 +00:00
|
|
|
%pytest statsd/tests.py
|
2015-12-07 08:44:54 +00:00
|
|
|
|
2017-08-22 06:18:06 +00:00
|
|
|
%files %{python_files}
|
2018-12-04 17:24:07 +00:00
|
|
|
%license LICENSE
|
2019-02-25 08:52:11 +00:00
|
|
|
%doc AUTHORS CHANGES README.rst docs/_build/html
|
2015-12-07 08:44:54 +00:00
|
|
|
%{python_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|