Skip to content

Commit e19b3c8

Browse files
authored
python312Packages.netifaces2: init at 0.0.22 (#354736)
1 parent b306e97 commit e19b3c8

File tree

2 files changed

+48
-0
lines changed

2 files changed

+48
-0
lines changed
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
{
2+
lib,
3+
buildPythonPackage,
4+
rustPlatform,
5+
fetchFromGitHub,
6+
pythonOlder,
7+
pytestCheckHook,
8+
}:
9+
let
10+
pname = "netifaces2";
11+
version = "0.0.22";
12+
13+
src = fetchFromGitHub {
14+
owner = "SamuelYvon";
15+
repo = "netifaces-2";
16+
rev = "refs/tags/V${version}";
17+
hash = "sha256-XO3HWq8FOVzvpbK8mIBOup6hFMnhDpqOK/5bPziPZQ8=";
18+
};
19+
in
20+
buildPythonPackage {
21+
inherit pname version src;
22+
pyproject = true;
23+
24+
disabled = pythonOlder "3.7";
25+
26+
cargoDeps = rustPlatform.fetchCargoTarball {
27+
inherit pname version src;
28+
hash = "sha256-dkqI0P61ciGqPtBc/6my7osaxxO9pEgovZhlpo1HdkU=";
29+
};
30+
31+
nativeBuildInputs = with rustPlatform; [
32+
cargoSetupHook
33+
maturinBuildHook
34+
];
35+
36+
nativeCheckInputs = [ pytestCheckHook ];
37+
pythonImportsCheck = [ "netifaces" ];
38+
39+
meta = {
40+
description = "Portable network interface information";
41+
homepage = "https://github.com/SamuelYvon/netifaces-2";
42+
license = with lib.licenses; [ mit ];
43+
platforms = with lib.platforms; unix ++ windows;
44+
maintainers = with lib.maintainers; [ pluiedev ];
45+
};
46+
}

pkgs/top-level/python-packages.nix

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9001,6 +9001,8 @@ self: super: with self; {
90019001

90029002
netifaces = callPackage ../development/python-modules/netifaces { };
90039003

9004+
netifaces2 = callPackage ../development/python-modules/netifaces2 { };
9005+
90049006
netmiko = callPackage ../development/python-modules/netmiko { };
90059007

90069008
netio = callPackage ../development/python-modules/netio { };

0 commit comments

Comments
 (0)