2021-01-25 08:26:54 +00:00
|
|
|
{ lib
|
2018-10-16 15:49:52 +01:00
|
|
|
, buildPythonPackage
|
2019-03-19 15:11:46 +00:00
|
|
|
, c-ares
|
|
|
|
, cffi
|
2021-05-16 15:54:31 +01:00
|
|
|
, fetchPypi
|
|
|
|
, idna
|
2018-10-16 15:49:52 +01:00
|
|
|
}:
|
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "pycares";
|
2021-05-16 15:54:31 +01:00
|
|
|
version = "4.0.0";
|
2018-10-16 15:49:52 +01:00
|
|
|
|
|
|
|
src = fetchPypi {
|
|
|
|
inherit pname version;
|
2021-05-16 15:54:31 +01:00
|
|
|
sha256 = "sha256-0BVPxXU7CIdY++ybwTfhsku4T8DGoJclyLrCWjQjEc0=";
|
2018-10-16 15:49:52 +01:00
|
|
|
};
|
|
|
|
|
2021-05-16 15:54:31 +01:00
|
|
|
buildInputs = [
|
|
|
|
c-ares
|
|
|
|
];
|
2019-03-19 15:11:46 +00:00
|
|
|
|
2021-05-16 15:54:31 +01:00
|
|
|
propagatedBuildInputs = [
|
|
|
|
cffi
|
|
|
|
idna
|
|
|
|
];
|
2019-03-19 15:11:46 +00:00
|
|
|
|
2021-05-16 15:54:31 +01:00
|
|
|
# Requires network access
|
2018-10-16 15:49:52 +01:00
|
|
|
doCheck = false;
|
|
|
|
|
2021-05-16 15:54:31 +01:00
|
|
|
pythonImportsCheck = [ "pycares" ];
|
|
|
|
|
2021-01-11 07:54:33 +00:00
|
|
|
meta = with lib; {
|
2021-05-16 15:54:31 +01:00
|
|
|
description = "Python interface for c-ares";
|
2020-04-01 02:11:51 +01:00
|
|
|
homepage = "https://github.com/saghul/pycares";
|
2018-10-16 15:49:52 +01:00
|
|
|
license = licenses.mit;
|
2021-05-16 15:54:31 +01:00
|
|
|
maintainers = with maintainers; [ fab ];
|
2018-10-16 15:49:52 +01:00
|
|
|
};
|
|
|
|
}
|