python3Packages.aiodns: 2.0.0 -> 3.0.0
This commit is contained in:
parent
9f73d45e2e
commit
f8beeb6f59
|
@ -1,30 +1,38 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi, pythonOlder
|
{ lib
|
||||||
, python, pycares, typing ? null
|
, buildPythonPackage
|
||||||
|
, fetchFromGitHub
|
||||||
|
, pycares
|
||||||
|
, pythonOlder
|
||||||
|
, typing
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "aiodns";
|
pname = "aiodns";
|
||||||
version = "2.0.0";
|
version = "3.0.0";
|
||||||
disabled = pythonOlder "3.5";
|
disabled = pythonOlder "3.6";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "saghul";
|
||||||
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d";
|
repo = pname;
|
||||||
|
rev = "aiodns-${version}";
|
||||||
|
sha256 = "1i91a43gsq222r8212jn4m6bxc3fl04z1mf2h7s39nqywxkggvlp";
|
||||||
};
|
};
|
||||||
|
|
||||||
propagatedBuildInputs = [ pycares ]
|
propagatedBuildInputs = [
|
||||||
++ lib.optional (pythonOlder "3.7") typing;
|
pycares
|
||||||
|
] ++ lib.optional (pythonOlder "3.7") [
|
||||||
|
typing
|
||||||
|
];
|
||||||
|
|
||||||
checkPhase = ''
|
# Could not contact DNS servers
|
||||||
${python.interpreter} tests.py
|
|
||||||
'';
|
|
||||||
|
|
||||||
# 'Could not contact DNS servers'
|
|
||||||
doCheck = false;
|
doCheck = false;
|
||||||
|
|
||||||
|
pythonImportsCheck = [ "aiodns" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
|
description = "Simple DNS resolver for asyncio";
|
||||||
homepage = "https://github.com/saghul/aiodns";
|
homepage = "https://github.com/saghul/aiodns";
|
||||||
license = licenses.mit;
|
license = licenses.mit;
|
||||||
description = "Simple DNS resolver for asyncio";
|
maintainers = with maintainers; [ fab ];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue