|
|
|
@ -1,16 +1,17 @@ |
|
|
|
|
{ stdenv, buildPythonPackage, fetchPypi |
|
|
|
|
{ stdenv, buildPythonPackage, fetchPypi, pythonOlder |
|
|
|
|
, isPy27, isPyPy, python, pycares, typing, trollius }: |
|
|
|
|
|
|
|
|
|
buildPythonPackage rec { |
|
|
|
|
pname = "aiodns"; |
|
|
|
|
version = "1.2.0"; |
|
|
|
|
version = "2.0.0"; |
|
|
|
|
|
|
|
|
|
src = fetchPypi { |
|
|
|
|
inherit pname version; |
|
|
|
|
sha256 = "d67e14b32176bcf3ff79b5d47c466011ce4adeadfa264f7949da1377332a0449"; |
|
|
|
|
sha256 = "815fdef4607474295d68da46978a54481dd1e7be153c7d60f9e72773cd38d77d"; |
|
|
|
|
}; |
|
|
|
|
|
|
|
|
|
propagatedBuildInputs = with stdenv.lib; [ pycares typing ] |
|
|
|
|
propagatedBuildInputs = with stdenv.lib; [ pycares ] |
|
|
|
|
++ optional (pythonOlder "3.7") typing |
|
|
|
|
++ optional (isPy27 || isPyPy) trollius; |
|
|
|
|
|
|
|
|
|
checkPhase = '' |
|
|
|
|