about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/myjwt/default.nix
blob: d80e66e07bf03b75a2d2c1d840417b48c91c164f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
{ lib
, stdenv
, buildPythonPackage
, fetchFromGitHub
, click
, colorama
, cryptography
, exrex
, pyopenssl
, pyperclip
, questionary
, requests
, pytestCheckHook
, pytest-mock
, requests-mock
}:

buildPythonPackage rec {
  pname = "myjwt";
  version = "1.4.0";

  src = fetchFromGitHub {
    owner = "mBouamama";
    repo = "MyJWT";
    rev = version;
    sha256 = "1n3lvdrzp6wbbcygjwa7xar2jnhjnrz7a9khmn2phhkkngxm5rc4";
  };

  patches = [ ./pinning.patch ];

  propagatedBuildInputs = [
    click
    colorama
    cryptography
    exrex
    pyopenssl
    pyperclip
    questionary
    requests
  ];

  checkInputs = [
    pytestCheckHook
    pytest-mock
    requests-mock
  ];

  pythonImportsCheck = [ "myjwt" ];

  meta = with lib; {
    description = "CLI tool for testing vulnerabilities on Json Web Token(JWT)";
    homepage = "https://github.com/mBouamama/MyJWT";
    license = with licenses; [ mit ];
    maintainers = with maintainers; [ fab ];
    # Build failures
    broken = stdenv.isDarwin;
  };
}