1{ lib
2, buildPythonPackage
3, fetchPypi
4, cryptography
5, ecdsa
6, pytest-cov
7, pytestCheckHook
8, pythonOlder
9}:
10
11buildPythonPackage rec {
12 pname = "pyjwt";
13 version = "2.1.0";
14 disabled = pythonOlder "3.6";
15
16 src = fetchPypi {
17 pname = "PyJWT";
18 inherit version;
19 sha256 = "sha256-+6ROeJi7yhYKKytQH0koJPyDgkhdOm8Rul0MGTfOYTA=";
20 };
21
22 propagatedBuildInputs = [
23 cryptography
24 ecdsa
25 ];
26
27 checkInputs = [
28 pytest-cov
29 pytestCheckHook
30 ];
31
32 pythonImportsCheck = [ "jwt" ];
33
34 meta = with lib; {
35 description = "JSON Web Token implementation in Python";
36 homepage = "https://github.com/jpadilla/pyjwt";
37 license = licenses.mit;
38 maintainers = with maintainers; [ prikhi ];
39 };
40}