From c61e5f06472fb035bbe97c4343edf7b04ed0bb29 Mon Sep 17 00:00:00 2001 From: "R. Ryantm" Date: Tue, 5 Apr 2022 19:56:36 +0000 Subject: [PATCH 1/2] python310Packages.teletype: 1.3.2 -> 1.3.4 --- pkgs/development/python-modules/teletype/default.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pkgs/development/python-modules/teletype/default.nix b/pkgs/development/python-modules/teletype/default.nix index 47f6357a5683..97e2f698a0df 100644 --- a/pkgs/development/python-modules/teletype/default.nix +++ b/pkgs/development/python-modules/teletype/default.nix @@ -2,12 +2,12 @@ buildPythonPackage rec { pname = "teletype"; - version = "1.3.2"; + version = "1.3.4"; format = "pyproject"; src = fetchPypi { inherit pname version; - sha256 = "sha256-9q46a4ui2kgSUL/vImR02r4T9huwLFwd70AqGBNJNzs="; + sha256 = "sha256-uBppM4w9GlMgYqKFGw1Rcjvq+mnU04K3E74jCgK9YYo="; }; # no tests From e52016f9b62aa98df7606b1e23a838a12fb142a0 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Tue, 5 Apr 2022 22:04:42 +0200 Subject: [PATCH 2/2] 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";