wlroots: 0.18.1 -> 0.18.2 (#364488)
[NixPkgs.git] / pkgs / development / python-modules / pycares / default.nix
blobe973ff42cdcb5fece3b9c0f10b0480ba189ddcdc
2   lib,
3   aiodns,
4   buildPythonPackage,
5   c-ares,
6   cffi,
7   fetchPypi,
8   idna,
9   pythonOlder,
10   tornado,
13 buildPythonPackage rec {
14   pname = "pycares";
15   version = "4.4.0";
16   format = "setuptools";
18   disabled = pythonOlder "3.7";
20   src = fetchPypi {
21     inherit pname version;
22     hash = "sha256-9HV51Qjy9W7d0WznIEV4KtOxs7Z4CYaZ4rahswcz4cI=";
23   };
25   buildInputs = [ c-ares ];
27   propagatedBuildInputs = [
28     cffi
29     idna
30   ];
32   propagatedNativeBuildInputs = [ cffi ];
34   # Requires network access
35   doCheck = false;
37   passthru.tests = {
38     inherit aiodns tornado;
39   };
41   pythonImportsCheck = [ "pycares" ];
43   meta = with lib; {
44     description = "Python interface for c-ares";
45     homepage = "https://github.com/saghul/pycares";
46     changelog = "https://github.com/saghul/pycares/releases/tag/pycares-${version}";
47     license = licenses.mit;
48     maintainers = with maintainers; [ fab ];
49   };