Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at 21.05 35 lines 601 B view raw
1{ lib 2, buildPythonPackage 3, fetchPypi 4, python 5, c-ares 6, cffi 7}: 8 9buildPythonPackage rec { 10 pname = "pycares"; 11 version = "3.1.1"; 12 13 src = fetchPypi { 14 inherit pname version; 15 sha256 = "18dfd4fd300f570d6c4536c1d987b7b7673b2a9d14346592c5d6ed716df0d104"; 16 }; 17 18 buildInputs = [ c-ares ]; 19 20 propagatedBuildInputs = [ cffi ]; 21 22 checkPhase = '' 23 ${python.interpreter} tests/tests.py 24 ''; 25 26 # requires network access 27 doCheck = false; 28 29 meta = with lib; { 30 homepage = "https://github.com/saghul/pycares"; 31 description = "Interface for c-ares"; 32 license = licenses.mit; 33 }; 34 35}