From 9f73d45e2ed02f32058f46de2cebc5b57c2617b5 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Sun, 16 May 2021 16:54:31 +0200 Subject: [PATCH] python3Packages.pycares: 3.1.1 -> 4.0.0 --- .../python-modules/pycares/default.nix | 35 ++++++++++--------- 1 file changed, 19 insertions(+), 16 deletions(-) diff --git a/pkgs/development/python-modules/pycares/default.nix b/pkgs/development/python-modules/pycares/default.nix index 9b3ec94babc..b01b82eb967 100644 --- a/pkgs/development/python-modules/pycares/default.nix +++ b/pkgs/development/python-modules/pycares/default.nix @@ -1,35 +1,38 @@ { lib , buildPythonPackage -, fetchPypi -, python , c-ares , cffi +, fetchPypi +, idna }: buildPythonPackage rec { pname = "pycares"; - version = "3.1.1"; + version = "4.0.0"; src = fetchPypi { inherit pname version; - sha256 = "18dfd4fd300f570d6c4536c1d987b7b7673b2a9d14346592c5d6ed716df0d104"; + sha256 = "sha256-0BVPxXU7CIdY++ybwTfhsku4T8DGoJclyLrCWjQjEc0="; }; - buildInputs = [ c-ares ]; + buildInputs = [ + c-ares + ]; - propagatedBuildInputs = [ cffi ]; + propagatedBuildInputs = [ + cffi + idna + ]; - checkPhase = '' - ${python.interpreter} tests/tests.py - ''; - - # requires network access + # Requires network access doCheck = false; - meta = with lib; { - homepage = "https://github.com/saghul/pycares"; - description = "Interface for c-ares"; - license = licenses.mit; - }; + pythonImportsCheck = [ "pycares" ]; + meta = with lib; { + description = "Python interface for c-ares"; + homepage = "https://github.com/saghul/pycares"; + license = licenses.mit; + maintainers = with maintainers; [ fab ]; + }; }