From e52016f9b62aa98df7606b1e23a838a12fb142a0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 Apr 2022 22:04:42 +0200 Subject: [PATCH] python3Packages.teletype: disable on older Python releases --- .../python-modules/teletype/default.nix | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/pkgs/development/python-modules/teletype/default.nix b/pkgs/development/python-modules/teletype/default.nix index 97e2f698a0df..999454edf83f 100644 --- a/pkgs/development/python-modules/teletype/default.nix +++ b/pkgs/development/python-modules/teletype/default.nix @@ -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";