mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-02 20:03:16 +00:00
56 lines
915 B
Nix
56 lines
915 B
Nix
{ lib
|
|
, aiodns
|
|
, buildPythonPackage
|
|
, c-ares
|
|
, cffi
|
|
, fetchPypi
|
|
, idna
|
|
, pythonOlder
|
|
, tornado
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pycares";
|
|
version = "4.3.0";
|
|
format = "setuptools";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchPypi {
|
|
inherit pname version;
|
|
hash = "sha256-xUJpb22sl46dmRkjhHRaZfgKfZRQUBFR5KdWPgYBDUU=";
|
|
};
|
|
|
|
buildInputs = [
|
|
c-ares
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
cffi
|
|
idna
|
|
];
|
|
|
|
propagatedNativeBuildInputs = [
|
|
cffi
|
|
];
|
|
|
|
# Requires network access
|
|
doCheck = false;
|
|
|
|
passthru.tests = {
|
|
inherit aiodns tornado;
|
|
};
|
|
|
|
pythonImportsCheck = [
|
|
"pycares"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Python interface for c-ares";
|
|
homepage = "https://github.com/saghul/pycares";
|
|
changelog = "https://github.com/saghul/pycares/releases/tag/pycares-${version}";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ fab ];
|
|
};
|
|
}
|