python3Packages.teletype: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-05 22:04:42 +02:00 committed by GitHub
parent c61e5f0647
commit e52016f9b6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,18 +1,27 @@
{ buildPythonPackage, fetchPypi, lib }: { lib
, buildPythonPackage
, fetchPypi
, pythonOlder
}:
buildPythonPackage rec { buildPythonPackage rec {
pname = "teletype"; pname = "teletype";
version = "1.3.4"; version = "1.3.4";
format = "pyproject"; format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi { src = fetchPypi {
inherit pname version; inherit pname version;
sha256 = "sha256-uBppM4w9GlMgYqKFGw1Rcjvq+mnU04K3E74jCgK9YYo="; hash = "sha256-uBppM4w9GlMgYqKFGw1Rcjvq+mnU04K3E74jCgK9YYo=";
}; };
# no tests # no tests
doCheck = false; doCheck = false;
pythonImportsCheck = [ "teletype" ];
pythonImportsCheck = [
"teletype"
];
meta = with lib; { meta = with lib; {
description = "A high-level cross platform tty library"; description = "A high-level cross platform tty library";