python3Packages.myjwt: disable on older Python releases

This commit is contained in:
Fabian Affolter 2022-04-07 19:34:28 +02:00 committed by GitHub
parent 4417580bbf
commit e54fe8f217
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -10,6 +10,7 @@
, pyperclip , pyperclip
, pytest-mock , pytest-mock
, pytestCheckHook , pytestCheckHook
, pythonOlder
, questionary , questionary
, requests , requests
, requests-mock , requests-mock
@ -18,6 +19,9 @@
buildPythonPackage rec { buildPythonPackage rec {
pname = "myjwt"; pname = "myjwt";
version = "1.6.0"; version = "1.6.0";
format = "setuptools";
disabled = pythonOlder "3.7";
src = fetchFromGitHub { src = fetchFromGitHub {
owner = "mBouamama"; owner = "mBouamama";
@ -48,7 +52,9 @@ buildPythonPackage rec {
sed -i -e "s/==[0-9.]*//" requirements.txt sed -i -e "s/==[0-9.]*//" requirements.txt
''; '';
pythonImportsCheck = [ "myjwt" ]; pythonImportsCheck = [
"myjwt"
];
meta = with lib; { meta = with lib; {
description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)"; description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)";