3
0
Fork 0
forked from mirrors/nixpkgs
nixpkgs/pkgs/development/python-modules/myjwt/default.nix

62 lines
1.1 KiB
Nix
Raw Normal View History

2021-02-28 12:04:42 +00:00
{ lib
, stdenv
, buildPythonPackage
, click
, colorama
, cryptography
, exrex
2021-05-08 21:40:02 +01:00
, fetchFromGitHub
2021-02-28 12:04:42 +00:00
, pyopenssl
, pyperclip
2021-05-08 21:40:02 +01:00
, pytest-mock
, pytestCheckHook
2021-02-28 12:04:42 +00:00
, questionary
, requests
, requests-mock
}:
buildPythonPackage rec {
pname = "myjwt";
2021-05-08 21:40:02 +01:00
version = "1.5.0";
2021-02-28 12:04:42 +00:00
src = fetchFromGitHub {
owner = "mBouamama";
repo = "MyJWT";
rev = version;
2021-05-08 21:40:02 +01:00
sha256 = "sha256-kZkqFeaQPd56BVaYmCWAbVu1xwbPAIlQC3u5/x3dh7A=";
2021-02-28 12:04:42 +00:00
};
propagatedBuildInputs = [
click
colorama
cryptography
exrex
pyopenssl
pyperclip
questionary
requests
];
checkInputs = [
pytest-mock
2021-05-08 21:40:02 +01:00
pytestCheckHook
2021-02-28 12:04:42 +00:00
requests-mock
];
2021-05-08 21:40:02 +01:00
postPatch = ''
# Remove all version pinning (E.g., tornado==5.1.1 -> tornado)
sed -i -e "s/==[0-9.]*//" requirements.txt
'';
2021-02-28 12:04:42 +00:00
pythonImportsCheck = [ "myjwt" ];
meta = with lib; {
2021-05-08 21:40:02 +01:00
description = "CLI tool for testing vulnerabilities of JSON Web Tokens (JWT)";
2021-02-28 12:04:42 +00:00
homepage = "https://github.com/mBouamama/MyJWT";
license = with licenses; [ mit ];
maintainers = with maintainers; [ fab ];
# Build failures
broken = stdenv.isDarwin;
};
}