lol

python3Packages.myjwt: 1.4.0 -> 1.5.0

authored by

Fabian Affolter and committed by
Jonathan Ringer
13f0da71 f6987986

+12 -30
+12 -9
pkgs/development/python-modules/myjwt/default.nix
··· 1 1 { lib 2 2 , stdenv 3 3 , buildPythonPackage 4 - , fetchFromGitHub 5 4 , click 6 5 , colorama 7 6 , cryptography 8 7 , exrex 8 + , fetchFromGitHub 9 9 , pyopenssl 10 10 , pyperclip 11 + , pytest-mock 12 + , pytestCheckHook 11 13 , questionary 12 14 , requests 13 - , pytestCheckHook 14 - , pytest-mock 15 15 , requests-mock 16 16 }: 17 17 18 18 buildPythonPackage rec { 19 19 pname = "myjwt"; 20 - version = "1.4.0"; 20 + version = "1.5.0"; 21 21 22 22 src = fetchFromGitHub { 23 23 owner = "mBouamama"; 24 24 repo = "MyJWT"; 25 25 rev = version; 26 - sha256 = "1n3lvdrzp6wbbcygjwa7xar2jnhjnrz7a9khmn2phhkkngxm5rc4"; 26 + sha256 = "sha256-kZkqFeaQPd56BVaYmCWAbVu1xwbPAIlQC3u5/x3dh7A="; 27 27 }; 28 28 29 - patches = [ ./pinning.patch ]; 30 - 31 29 propagatedBuildInputs = [ 32 30 click 33 31 colorama ··· 40 38 ]; 41 39 42 40 checkInputs = [ 43 - pytestCheckHook 44 41 pytest-mock 42 + pytestCheckHook 45 43 requests-mock 46 44 ]; 47 45 46 + postPatch = '' 47 + # Remove all version pinning (E.g., tornado==5.1.1 -> tornado) 48 + sed -i -e "s/==[0-9.]*//" requirements.txt 49 + ''; 50 + 48 51 pythonImportsCheck = [ "myjwt" ]; 49 52 50 53 meta = with lib; { 51 - description = "CLI tool for testing vulnerabilities on Json Web Token(JWT)"; 54 + description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)"; 52 55 homepage = "https://github.com/mBouamama/MyJWT"; 53 56 license = with licenses; [ mit ]; 54 57 maintainers = with maintainers; [ fab ];
-21
pkgs/development/python-modules/myjwt/pinning.patch
··· 1 - diff --git a/requirements.txt b/requirements.txt 2 - index 3017e02..2b465db 100644 3 - --- a/requirements.txt 4 - +++ b/requirements.txt 5 - @@ -1,8 +1,8 @@ 6 - -click==7.1.2 7 - -colorama==0.4.4 8 - -cryptography==3.3.1 9 - -exrex==0.10.5 10 - -pyOpenSSL==20.0.1 11 - -pyperclip==1.8.1 12 - -questionary==1.9.0 13 - -requests==2.25.1 14 - +click 15 - +colorama 16 - +cryptography 17 - +exrex 18 - +pyOpenSSL 19 - +pyperclip 20 - +questionary 21 - +requests