@@ -1,33 +1,31 @@
11{ lib
22, stdenv
33, buildPythonPackage
4−, fetchFromGitHub
54, click
65, colorama
76, cryptography
87, exrex
8+, fetchFromGitHub
99, pyopenssl
1010, pyperclip
11+, pytest-mock
12+, pytestCheckHook
1113, questionary
1214, requests
13−, pytestCheckHook
14−, pytest-mock
1515, requests-mock
1616}:
1717
1818buildPythonPackage rec {
1919 pname = "myjwt";
20− version = "1.4.0";
20+ version = "1.5.0";
2121
2222 src = fetchFromGitHub {
2323 owner = "mBouamama";
2424 repo = "MyJWT";
2525 rev = version;
26− sha256 = "1n3lvdrzp6wbbcygjwa7xar2jnhjnrz7a9khmn2phhkkngxm5rc4";
26+ sha256 = "sha256-kZkqFeaQPd56BVaYmCWAbVu1xwbPAIlQC3u5/x3dh7A=";
2727 };
2828
29− patches = [ ./pinning.patch ];
30−
3129 propagatedBuildInputs = [
3230 click
3331 colorama
@@ -40,15 +38,20 @@ buildPythonPackage rec {
4038 ];
4139
4240 checkInputs = [
43− pytestCheckHook
4441 pytest-mock
42+ pytestCheckHook
4543 requests-mock
4644 ];
4745
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+
4851 pythonImportsCheck = [ "myjwt" ];
4952
5053 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)";
5255 homepage = "https://github.com/mBouamama/MyJWT";
5356 license = with licenses; [ mit ];
5457 maintainers = with maintainers; [ fab ];