File tree Expand file tree Collapse file tree 2 files changed +48
-0
lines changed
development/python-modules/netifaces2 Expand file tree Collapse file tree 2 files changed +48
-0
lines changed Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff 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 { };
You can’t perform that action at this time.
0 commit comments