linux_xanmod: 5.11.14 -> 5.11.15
[NixPkgs.git] / pkgs / development / python-modules / myjwt / default.nix
blobd80e66e07bf03b75a2d2c1d840417b48c91c164f
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
18 buildPythonPackage rec {
19   pname = "myjwt";
20   version = "1.4.0";
22   src = fetchFromGitHub {
23     owner = "mBouamama";
24     repo = "MyJWT";
25     rev = version;
26     sha256 = "1n3lvdrzp6wbbcygjwa7xar2jnhjnrz7a9khmn2phhkkngxm5rc4";
27   };
29   patches = [ ./pinning.patch ];
31   propagatedBuildInputs = [
32     click
33     colorama
34     cryptography
35     exrex
36     pyopenssl
37     pyperclip
38     questionary
39     requests
40   ];
42   checkInputs = [
43     pytestCheckHook
44     pytest-mock
45     requests-mock
46   ];
48   pythonImportsCheck = [ "myjwt" ];
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 ];
55     # Build failures
56     broken = stdenv.isDarwin;
57   };