Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37541022
en ru br
ALT Linux repos
S:0.7.7-alt1

Group :: Development/Python3
RPM: python3-module-pyroute2

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

%define oname pyroute2

%def_with check

Name: python3-module-%oname
Version: 0.7.7
Release: alt1

Summary: Python Netlink library

Group: Development/Python3
License: GPLv2+, ASL 2.0
Url: https://github.com/svinota/pyroute2

Source: %oname-%version.tar

BuildArch: noarch

BuildRequires(pre): rpm-build-python3
BuildRequires: python3-module-setuptools
BuildRequires: python3-module-wheel
%if_with check
BuildRequires: python3-module-pytest
BuildRequires: python3-modules-sqlite3
%endif

%add_python3_req_skip pyroute2.bsd.rtmsocket
%add_python3_req_skip dhclient
%add_python3_req_skip netl
%add_python3_req_skip mitogen.core mitogen.master

%description
Pyroute2 is a pure Python3 netlink library.
It requires only Python stdlib, no 3rd party libraries.
The library was started as an RTNL protocol implementation,
so the name is pyroute2, but now it supports many netlink protocols.

%prep
%setup -n %oname-%version

%build
%pyproject_build

%install
%pyproject_install

%check
%pyproject_run_pytest -- tests/test_minimal/*.py tests/test_unit/*.py

%files
%doc *.rst
%_bindir/*
%python3_sitelibdir/*


%changelog

Full changelog you can see here

 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin