blob: 95c01cb64bc1c0d3d1a7b24921149d78138a2837 (
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
|
{ lib
, buildPythonPackage
, fetchFromGitHub
, pythonOlder
, cryptography
, freezegun
, pytestCheckHook
, pytest-cov
}:
buildPythonPackage rec {
pname = "jwt";
version = "1.3.1";
format = "setuptools";
disabled = pythonOlder "3.6";
src = fetchFromGitHub {
inherit version;
owner = "GehirnInc";
repo = "python-jwt";
rev = "v${version}";
hash = "sha256-N1J8yBVX/O+92cRp+q2gA2cFsd+C7JjUR9jo0VGoINg=";
};
postPatch = ''
# pytest-flake8 is incompatible flake8 6.0.0 and currently unmaintained
substituteInPlace setup.cfg --replace "--flake8" ""
'';
propagatedBuildInputs = [
cryptography
];
nativeCheckInputs = [
pytestCheckHook
freezegun
pytest-cov
];
pythonImportsCheck = [ "jwt" ];
meta = with lib; {
description = "JSON Web Token library for Python 3";
homepage = "https://github.com/GehirnInc/python-jwt";
license = licenses.asl20;
maintainers = with maintainers; [ thornycrackers ];
};
}
|