python3Packages.myjwt: 1.4.0 -> 1.5.0
This commit is contained in:
parent
f6987986d3
commit
13f0da71e6
|
@ -1,33 +1,31 @@
|
||||||
{ lib
|
{ lib
|
||||||
, stdenv
|
, stdenv
|
||||||
, buildPythonPackage
|
, buildPythonPackage
|
||||||
, fetchFromGitHub
|
|
||||||
, click
|
, click
|
||||||
, colorama
|
, colorama
|
||||||
, cryptography
|
, cryptography
|
||||||
, exrex
|
, exrex
|
||||||
|
, fetchFromGitHub
|
||||||
, pyopenssl
|
, pyopenssl
|
||||||
, pyperclip
|
, pyperclip
|
||||||
|
, pytest-mock
|
||||||
|
, pytestCheckHook
|
||||||
, questionary
|
, questionary
|
||||||
, requests
|
, requests
|
||||||
, pytestCheckHook
|
|
||||||
, pytest-mock
|
|
||||||
, requests-mock
|
, requests-mock
|
||||||
}:
|
}:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "myjwt";
|
pname = "myjwt";
|
||||||
version = "1.4.0";
|
version = "1.5.0";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "mBouamama";
|
owner = "mBouamama";
|
||||||
repo = "MyJWT";
|
repo = "MyJWT";
|
||||||
rev = version;
|
rev = version;
|
||||||
sha256 = "1n3lvdrzp6wbbcygjwa7xar2jnhjnrz7a9khmn2phhkkngxm5rc4";
|
sha256 = "sha256-kZkqFeaQPd56BVaYmCWAbVu1xwbPAIlQC3u5/x3dh7A=";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [ ./pinning.patch ];
|
|
||||||
|
|
||||||
propagatedBuildInputs = [
|
propagatedBuildInputs = [
|
||||||
click
|
click
|
||||||
colorama
|
colorama
|
||||||
|
@ -40,15 +38,20 @@ buildPythonPackage rec {
|
||||||
];
|
];
|
||||||
|
|
||||||
checkInputs = [
|
checkInputs = [
|
||||||
pytestCheckHook
|
|
||||||
pytest-mock
|
pytest-mock
|
||||||
|
pytestCheckHook
|
||||||
requests-mock
|
requests-mock
|
||||||
];
|
];
|
||||||
|
|
||||||
|
postPatch = ''
|
||||||
|
# Remove all version pinning (E.g., tornado==5.1.1 -> tornado)
|
||||||
|
sed -i -e "s/==[0-9.]*//" requirements.txt
|
||||||
|
'';
|
||||||
|
|
||||||
pythonImportsCheck = [ "myjwt" ];
|
pythonImportsCheck = [ "myjwt" ];
|
||||||
|
|
||||||
meta = with lib; {
|
meta = with lib; {
|
||||||
description = "CLI tool for testing vulnerabilities on Json Web Token(JWT)";
|
description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)";
|
||||||
homepage = "https://github.com/mBouamama/MyJWT";
|
homepage = "https://github.com/mBouamama/MyJWT";
|
||||||
license = with licenses; [ mit ];
|
license = with licenses; [ mit ];
|
||||||
maintainers = with maintainers; [ fab ];
|
maintainers = with maintainers; [ fab ];
|
||||||
|
|
|
@ -1,21 +0,0 @@
|
||||||
diff --git a/requirements.txt b/requirements.txt
|
|
||||||
index 3017e02..2b465db 100644
|
|
||||||
--- a/requirements.txt
|
|
||||||
+++ b/requirements.txt
|
|
||||||
@@ -1,8 +1,8 @@
|
|
||||||
-click==7.1.2
|
|
||||||
-colorama==0.4.4
|
|
||||||
-cryptography==3.3.1
|
|
||||||
-exrex==0.10.5
|
|
||||||
-pyOpenSSL==20.0.1
|
|
||||||
-pyperclip==1.8.1
|
|
||||||
-questionary==1.9.0
|
|
||||||
-requests==2.25.1
|
|
||||||
+click
|
|
||||||
+colorama
|
|
||||||
+cryptography
|
|
||||||
+exrex
|
|
||||||
+pyOpenSSL
|
|
||||||
+pyperclip
|
|
||||||
+questionary
|
|
||||||
+requests
|
|
Loading…
Reference in New Issue