1{ lib
2, buildPythonPackage
3, fetchPypi
4, pyroute2-core
5}:
6
7buildPythonPackage rec {
8 pname = "pyroute2-ethtool";
9 version = "0.6.5";
10
11 src = fetchPypi {
12 pname = "pyroute2.ethtool";
13 inherit version;
14 sha256 = "sha256-yvgBS2dlIRNcR2DXLPWu72q7x/onUhD36VMzBzzHcVo=";
15 };
16
17 propagatedBuildInputs = [
18 pyroute2-core
19 ];
20
21 # pyroute2 sub-modules have no tests
22 doCheck = false;
23
24 pythonImportsCheck = [
25 "pr2modules.ethtool"
26 ];
27
28 meta = with lib; {
29 description = "Ethtool module for pyroute2";
30 homepage = "https://github.com/svinota/pyroute2";
31 license = licenses.asl20;
32 maintainers = with maintainers; [ fab ];
33 platforms = platforms.unix;
34 };
35}