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 { lib 2 , stdenv 3 , buildPythonPackage 4 - , fetchFromGitHub 5 , click 6 , colorama 7 , cryptography 8 , exrex 9 , pyopenssl 10 , pyperclip 11 , questionary 12 , requests 13 - , pytestCheckHook 14 - , pytest-mock 15 , requests-mock 16 }: 17 18 buildPythonPackage rec { 19 pname = "myjwt"; 20 - version = "1.4.0"; 21 22 src = fetchFromGitHub { 23 owner = "mBouamama"; 24 repo = "MyJWT"; 25 rev = version; 26 - sha256 = "1n3lvdrzp6wbbcygjwa7xar2jnhjnrz7a9khmn2phhkkngxm5rc4"; 27 }; 28 29 - patches = [ ./pinning.patch ]; 30 - 31 propagatedBuildInputs = [ 32 click 33 colorama ··· 40 ]; 41 42 checkInputs = [ 43 - pytestCheckHook 44 pytest-mock 45 requests-mock 46 ]; 47 48 pythonImportsCheck = [ "myjwt" ]; 49 50 meta = with lib; { 51 - description = "CLI tool for testing vulnerabilities on Json Web Token(JWT)"; 52 homepage = "https://github.com/mBouamama/MyJWT"; 53 license = with licenses; [ mit ]; 54 maintainers = with maintainers; [ fab ];
··· 1 { lib 2 , stdenv 3 , buildPythonPackage 4 , click 5 , colorama 6 , cryptography 7 , exrex 8 + , fetchFromGitHub 9 , pyopenssl 10 , pyperclip 11 + , pytest-mock 12 + , pytestCheckHook 13 , questionary 14 , requests 15 , requests-mock 16 }: 17 18 buildPythonPackage rec { 19 pname = "myjwt"; 20 + version = "1.5.0"; 21 22 src = fetchFromGitHub { 23 owner = "mBouamama"; 24 repo = "MyJWT"; 25 rev = version; 26 + sha256 = "sha256-kZkqFeaQPd56BVaYmCWAbVu1xwbPAIlQC3u5/x3dh7A="; 27 }; 28 29 propagatedBuildInputs = [ 30 click 31 colorama ··· 38 ]; 39 40 checkInputs = [ 41 pytest-mock 42 + pytestCheckHook 43 requests-mock 44 ]; 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 + 51 pythonImportsCheck = [ "myjwt" ]; 52 53 meta = with lib; { 54 + description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)"; 55 homepage = "https://github.com/mBouamama/MyJWT"; 56 license = with licenses; [ mit ]; 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
···