diff --git a/pkgs/development/python-modules/ipwhois/default.nix b/pkgs/development/python-modules/ipwhois/default.nix index ea8fa078833d..abdcb10e9eb2 100644 --- a/pkgs/development/python-modules/ipwhois/default.nix +++ b/pkgs/development/python-modules/ipwhois/default.nix @@ -2,6 +2,7 @@ lib, stdenv, buildPythonPackage, + defusedxml, dnspython, fetchFromGitHub, fetchpatch, @@ -14,7 +15,7 @@ buildPythonPackage rec { pname = "ipwhois"; - version = "1.2.0"; + version = "1.3.0"; pyproject = true; disabled = pythonOlder "3.7"; @@ -23,27 +24,19 @@ buildPythonPackage rec { owner = "secynic"; repo = "ipwhois"; rev = "refs/tags/v${version}"; - hash = "sha256-2CfRRHlIIaycUtzKeMBKi6pVPeBCb1nW3/1hoxQU1YM="; + hash = "sha256-PY3SUPELcCvS/o5kfko4OD1BlTc9DnyqfkSFuzcAOSY="; }; - patches = [ - # Use assertEqual instead of assertEquals, https://github.com/secynic/ipwhois/pull/316 - (fetchpatch { - name = "assert-equal.patch"; - url = "https://github.com/secynic/ipwhois/commit/fce2761354af99bc169e6cd08057e838fcc40f75.patch"; - hash = "sha256-7Ic4xWTAmklk6MvnZ/WsH9SW/4D9EG/jFKt5Wi89Xtc="; - }) - ]; - __darwinAllowLocalNetworking = true; pythonRelaxDeps = [ "dnspython" ]; - nativeBuildInputs = [ - setuptools - ]; + build-system = [ setuptools ]; - propagatedBuildInputs = [ dnspython ]; + dependencies = [ + defusedxml + dnspython + ]; nativeCheckInputs = [ pytestCheckHook ];