diff --git a/pkgs/development/python-modules/pycares/default.nix b/pkgs/development/python-modules/pycares/default.nix index 341e9519d80..f68a10d6186 100644 --- a/pkgs/development/python-modules/pycares/default.nix +++ b/pkgs/development/python-modules/pycares/default.nix @@ -1,21 +1,29 @@ { stdenv , buildPythonPackage , fetchPypi -, pkgs +, python +, c-ares +, cffi }: buildPythonPackage rec { pname = "pycares"; - version = "2.4.0"; + version = "3.0.0"; src = fetchPypi { inherit pname version; - sha256 = "15pwsxsj1nr33n6x2918bfbzdnqv1qkwd2d5jgvxsm81zxnvgk0f"; + sha256 = "b253f5dcaa0ac7076b79388a3ac80dd8f3bd979108f813baade40d3a9b8bf0bd"; }; - propagatedBuildInputs = [ pkgs.c-ares ]; + buildInputs = [ c-ares ]; - # No tests included + propagatedBuildInputs = [ cffi ]; + + checkPhase = '' + ${python.interpreter} tests/tests.py + ''; + + # requires network access doCheck = false; meta = with stdenv.lib; {