mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-08 19:45:42 +03:00
python3Packages.python-ethtool: init at 0.14
This commit is contained in:
parent
4c413847d4
commit
3d7629eba8
2 changed files with 36 additions and 0 deletions
34
pkgs/development/python-modules/python-ethtool/default.nix
Normal file
34
pkgs/development/python-modules/python-ethtool/default.nix
Normal file
|
@ -0,0 +1,34 @@
|
||||||
|
{ lib
|
||||||
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pkg-config
|
||||||
|
, libnl
|
||||||
|
, nettools
|
||||||
|
}:
|
||||||
|
|
||||||
|
buildPythonPackage rec {
|
||||||
|
pname = "python-ethtool";
|
||||||
|
version = "0.14";
|
||||||
|
|
||||||
|
src = fetchFromGitHub {
|
||||||
|
owner = "fedora-python";
|
||||||
|
repo = pname;
|
||||||
|
rev = "v${version}";
|
||||||
|
sha256 = "sha256-Sp7ssfLZ/1FEKrvX257pKcaureZ5mdpJ7jCEh/ft1l0=";
|
||||||
|
};
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
substituteInPlace tests/parse_ifconfig.py --replace "Popen('ifconfig'," "Popen('${nettools}/bin/ifconfig',"
|
||||||
|
'';
|
||||||
|
|
||||||
|
buildInputs = [ libnl ];
|
||||||
|
nativeBuildInputs = [ pkg-config ];
|
||||||
|
pythonImportsCheck = [ "ethtool" ];
|
||||||
|
|
||||||
|
meta = with lib; {
|
||||||
|
description = "Python bindings for the ethtool kernel interface";
|
||||||
|
homepage = "https://github.com/fedora-python/python-ethtool";
|
||||||
|
license = licenses.gpl2Plus;
|
||||||
|
maintainers = with maintainers; [ elohmeier ];
|
||||||
|
};
|
||||||
|
}
|
|
@ -6885,6 +6885,8 @@ in {
|
||||||
|
|
||||||
python-etcd = callPackage ../development/python-modules/python-etcd { };
|
python-etcd = callPackage ../development/python-modules/python-etcd { };
|
||||||
|
|
||||||
|
python-ethtool = callPackage ../development/python-modules/python-ethtool { };
|
||||||
|
|
||||||
python_fedora = callPackage ../development/python-modules/python_fedora { };
|
python_fedora = callPackage ../development/python-modules/python_fedora { };
|
||||||
|
|
||||||
python-fontconfig = callPackage ../development/python-modules/python-fontconfig { };
|
python-fontconfig = callPackage ../development/python-modules/python-fontconfig { };
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue