pyserial: only disable on actually-unsupported versions

This commit is contained in:
Andrew Dunham 2022-06-25 22:08:20 -04:00
parent 2a04d4cb5e
commit f89ccf732b

View file

@ -4,6 +4,7 @@
, fetchPypi , fetchPypi
, python , python
, pythonOlder , pythonOlder
, isPy3k
}: }:
buildPythonPackage rec { buildPythonPackage rec {
@ -11,7 +12,8 @@ buildPythonPackage rec {
version = "3.5"; version = "3.5";
format = "setuptools"; format = "setuptools";
disabled = pythonOlder "3.7"; # Supports Python 2.7 and 3.4+
disabled = isPy3k && pythonOlder "3.4";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;