pythonPackages.aiodns: diable for Python older than 3.5

Upstream explicitly states that minimum required version is 3.5.
Compatibility dependencies can thus be removed.
This commit is contained in:
Markus S. Wamser 2021-04-30 09:40:14 +02:00
parent 2a00e53bda
commit 8192beda59

View File

@ -1,11 +1,11 @@
{ lib, buildPythonPackage, fetchPypi, pythonOlder { lib, buildPythonPackage, fetchPypi, pythonOlder
, isPy27, isPyPy, python, pycares, typing ? null , python, pycares, typing ? null
, trollius ? null
}: }:
buildPythonPackage rec { buildPythonPackage rec {
pname = "aiodns"; pname = "aiodns";
version = "2.0.0"; version = "2.0.0";
disabled = pythonOlder "3.5";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
@ -13,8 +13,7 @@ buildPythonPackage rec {
}; };
propagatedBuildInputs = [ pycares ] propagatedBuildInputs = [ pycares ]
++ lib.optional (pythonOlder "3.7") typing ++ lib.optional (pythonOlder "3.7") typing;
++ lib.optional (isPy27 || isPyPy) trollius;
checkPhase = '' checkPhase = ''
${python.interpreter} tests.py ${python.interpreter} tests.py