blob: 6899899c85f610517fa879a3b48c6c7e5f2c972f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
{
lib,
buildPythonPackage,
rustPlatform,
fetchFromGitHub,
pytestCheckHook,
}:
let
pname = "netifaces2";
version = "0.0.22";
src = fetchFromGitHub {
owner = "SamuelYvon";
repo = "netifaces-2";
tag = "V${version}";
hash = "sha256-XO3HWq8FOVzvpbK8mIBOup6hFMnhDpqOK/5bPziPZQ8=";
};
in
buildPythonPackage {
inherit pname version src;
pyproject = true;
cargoDeps = rustPlatform.fetchCargoVendor {
inherit pname version src;
hash = "sha256-n8IDl1msu2wn6YSsRJDy48M8qo96cXD8n+2HeU2WspE=";
};
nativeBuildInputs = with rustPlatform; [
cargoSetupHook
maturinBuildHook
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "netifaces" ];
meta = {
description = "Portable network interface information";
homepage = "https://github.com/SamuelYvon/netifaces-2";
license = with lib.licenses; [ mit ];
platforms = with lib.platforms; unix ++ windows;
maintainers = with lib.maintainers; [ pluiedev ];
};
}
|