Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
1.0 kB · 46 lines
Nix
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647{ 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="; };inbuildPythonPackage { 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 ]; };}