git.iko.soy/typeable/nixpkgs
on master help sign in
python3Packages.myjwt: 1.4.0 -> 1.5.0
commit13f0da71e613fab9303af5af60c67d4fc5a60051 authorFabian Affolter <mail@fabian-affolter.ch> dateSat 8 May 2021, 22:40 (6 years ago) parentf698798
2 files changed+12−30
pkgs/development/python-modules/myjwt/default.nix+12−9 pkgs/development/python-modules/myjwt/pinning.patch−21
pkgs/development/python-modules/myjwt/default.nix+12−9
@@ -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 ];
pkgs/development/python-modules/myjwt/pinning.patchdeleted−21
@@ -1,21 +0,0 @@
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