Files
nixpkgs/pkgs/development/python-modules/netifaces2/default.nix
Dark Steveneq 646b892680
Some checks failed
Periodic Merges (6h) / master → staging-nixos (push) Failing after 12m50s
Periodic Merges (6h) / master → staging-next (push) Failing after 12m54s
Periodic Merges (24h) / merge-base(master,staging) → haskell-updates (push) Failing after 11m54s
Periodic Merges (6h) / staging-next → staging (push) Failing after 12m13s
Periodic Merges (24h) / staging-next-25.05 → staging-25.05 (push) Failing after 13m24s
Periodic Merges (24h) / release-25.05 → staging-next-25.05 (push) Failing after 14m28s
push sheeet
2025-10-09 14:15:47 +02:00

47 lines
1.0 KiB
Nix

{
lib,
buildPythonPackage,
rustPlatform,
fetchFromGitHub,
pythonOlder,
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;
disabled = pythonOlder "3.7";
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 ];
};
}