1{ lib 2, buildPythonPackage 3, c-ares 4, cffi 5, fetchPypi 6, idna 7}: 8 9buildPythonPackage rec { 10 pname = "pycares"; 11 version = "4.2.2"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "sha256-4fV6gAQ3AIBpS9b7lpof/JFxpZxoJNVPeRwbLk0pg4U="; 16 }; 17 18 buildInputs = [ 19 c-ares 20 ]; 21 22 propagatedBuildInputs = [ 23 cffi 24 idna 25 ]; 26 27 propagatedNativeBuildInputs = [ 28 cffi 29 ]; 30 31 # Requires network access 32 doCheck = false; 33 34 pythonImportsCheck = [ "pycares" ]; 35 36 meta = with lib; { 37 description = "Python interface for c-ares"; 38 homepage = "https://github.com/saghul/pycares"; 39 license = licenses.mit; 40 maintainers = with maintainers; [ fab ]; 41 }; 42}