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 {
pname = "teletype";
version = "1.3.4";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchPypi {
inherit pname version;
sha256 = "sha256-uBppM4w9GlMgYqKFGw1Rcjvq+mnU04K3E74jCgK9YYo=";
hash = "sha256-uBppM4w9GlMgYqKFGw1Rcjvq+mnU04K3E74jCgK9YYo=";
};
# no tests
doCheck = false;
pythonImportsCheck = [ "teletype" ];
pythonImportsCheck = [
"teletype"
];
meta = with lib; {
description = "A high-level cross platform tty library";