nixpkgs mirror (for testing) github.com/NixOS/nixpkgs
nix
at python-updates 54 lines 960 B view raw
1{ 2 lib, 3 aiodns, 4 buildPythonPackage, 5 c-ares, 6 cffi, 7 cmake, 8 fetchPypi, 9 idna, 10 setuptools, 11 tornado, 12}: 13 14buildPythonPackage rec { 15 pname = "pycares"; 16 version = "5.0.1"; 17 pyproject = true; 18 19 src = fetchPypi { 20 inherit pname version; 21 hash = "sha256-WjwknIMEMmMUOYFfmoGEY0FvKoy9semI54dX3prnUIE="; 22 }; 23 24 nativeBuildInputs = [ cmake ]; 25 dontUseCmakeConfigure = true; 26 27 build-system = [ setuptools ]; 28 29 buildInputs = [ c-ares ]; 30 31 dependencies = [ 32 cffi 33 idna 34 ]; 35 36 propagatedNativeBuildInputs = [ cffi ]; 37 38 # Requires network access 39 doCheck = false; 40 41 passthru.tests = { 42 inherit aiodns tornado; 43 }; 44 45 pythonImportsCheck = [ "pycares" ]; 46 47 meta = { 48 description = "Python interface for c-ares"; 49 homepage = "https://github.com/saghul/pycares"; 50 changelog = "https://github.com/saghul/pycares/releases/tag/v${version}"; 51 license = lib.licenses.mit; 52 maintainers = with lib.maintainers; [ fab ]; 53 }; 54}