From e54fe8f21743808ae71cd52f8cd471019b4b3046 Mon Sep 17 00:00:00 2001 From: Fabian Affolter Date: Thu, 7 Apr 2022 19:34:28 +0200 Subject: [PATCH] python3Packages.myjwt: disable on older Python releases --- pkgs/development/python-modules/myjwt/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/pkgs/development/python-modules/myjwt/default.nix b/pkgs/development/python-modules/myjwt/default.nix index ca3e4fa1cb48..3c21c2c8106f 100644 --- a/pkgs/development/python-modules/myjwt/default.nix +++ b/pkgs/development/python-modules/myjwt/default.nix @@ -10,6 +10,7 @@ , pyperclip , pytest-mock , pytestCheckHook +, pythonOlder , questionary , requests , requests-mock @@ -18,6 +19,9 @@ buildPythonPackage rec { pname = "myjwt"; version = "1.6.0"; + format = "setuptools"; + + disabled = pythonOlder "3.7"; src = fetchFromGitHub { owner = "mBouamama"; @@ -48,7 +52,9 @@ buildPythonPackage rec { sed -i -e "s/==[0-9.]*//" requirements.txt ''; - pythonImportsCheck = [ "myjwt" ]; + pythonImportsCheck = [ + "myjwt" + ]; meta = with lib; { description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)";