13 buildPythonPackage rec {
18 src = fetchFromGitHub {
19 owner = "fedora-python";
20 repo = "python-ethtool";
22 hash = "sha256-0XzGaqpkEv3mpUsbfOtRl8E62iNdS7kRoo4oYrBjMys=";
26 # https://github.com/fedora-python/python-ethtool/pull/60
28 url = "https://github.com/fedora-python/python-ethtool/commit/f82dd763bd50affda993b9afe3b141069a1a7466.patch";
29 hash = "sha256-mtI7XsoyM43s2DFQdsBNpB8jJff7ZyO2J6SHodBrdrI=";
34 substituteInPlace tests/parse_ifconfig.py \
35 --replace-fail "Popen('ifconfig'," "Popen('${lib.getExe' nettools "ifconfig"}',"
38 build-system = [ setuptools ];
40 nativeBuildInputs = [ pkg-config ];
42 buildInputs = [ libnl ];
44 pythonImportsCheck = [ "ethtool" ];
52 changelog = "https://github.com/fedora-python/python-ethtool/blob/${src.rev}/CHANGES.rst";
53 description = "Python bindings for the ethtool kernel interface";
54 homepage = "https://github.com/fedora-python/python-ethtool";
55 license = licenses.gpl2Plus;