From 069f9a077ed3cc885ee781dd92cc32a7a1e0f37f Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 7 Jun 2022 11:14:50 +0200 Subject: [PATCH] python310Packages.netifaces: add format - disable on obsolete Python releases --- .../python-modules/netifaces/default.nix | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/pkgs/development/python-modules/netifaces/default.nix b/pkgs/development/python-modules/netifaces/default.nix index 66feb7be0263..6d34bc3df4a5 100644 --- a/pkgs/development/python-modules/netifaces/default.nix +++ b/pkgs/development/python-modules/netifaces/default.nix @@ -1,25 +1,32 @@ { lib , buildPythonPackage , fetchPypi +, pythonOlder }: buildPythonPackage rec { version = "0.11.0"; pname = "netifaces"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchPypi { inherit pname version; - sha256 = "043a79146eb2907edf439899f262b3dfe41717d34124298ed281139a8b93ca32"; + hash = "sha256-BDp5FG6ykH7fQ5iZ8mKz3+QXF9NBJCmO0oETmouTyjI="; }; - doCheck = false; # no tests implemented + # No tests implemented + doCheck = false; - pythonImportsCheck = [ "netifaces" ]; + pythonImportsCheck = [ + "netifaces" + ]; meta = with lib; { - homepage = "https://alastairs-place.net/projects/netifaces/"; description = "Portable access to network interfaces from Python"; + homepage = "https://github.com/al45tair/netifaces"; license = licenses.mit; + maintainers = with maintainers; [ ]; }; - }