blob: c29ff403d0b3a6dabf264b82f07794ff92a8b892 (
plain)
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
cryptography,
freezegun,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "jwt";
version = "1.4.0";
pyproject = true;
src = fetchFromGitHub {
owner = "GehirnInc";
repo = "python-jwt";
tag = "v${version}";
hash = "sha256-Cv64SmhkETm8mx1Kj5u0WZpCPjPNvC+KS6/XaMzxCho=";
};
postPatch = ''
# pytest-flake8 is incompatible flake8 6.0.0 and currently unmaintained
substituteInPlace setup.cfg --replace "--flake8" ""
'';
build-system = [ setuptools ];
dependencies = [ cryptography ];
nativeCheckInputs = [
pytestCheckHook
freezegun
pytest-cov-stub
];
pythonImportsCheck = [ "jwt" ];
meta = {
description = "JSON Web Token library for Python 3";
homepage = "https://github.com/GehirnInc/python-jwt";
license = lib.licenses.asl20;
maintainers = with lib.maintainers; [ thornycrackers ];
};
}
|