1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
44 lines
996 B
Nix
44 lines
996 B
Nix
{
|
|
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 ];
|
|
};
|
|
}
|