blob: 2d5e97887688b6204bda0171b119d005fbda15c8 (
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
48
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
pycryptodomex,
pytestCheckHook,
requests,
setuptools,
six,
}:
buildPythonPackage rec {
pname = "pyjwkest";
version = "1.4.4";
pyproject = true;
src = fetchFromGitHub {
owner = "IdentityPython";
repo = "pyjwkest";
tag = "v${version}";
hash = "sha256-G4/qLOOQHsNSMVndUdYBhrrk8uEufbI8Od3ziQiY0XI=";
};
build-system = [ setuptools ];
# Remove unused future import, see pending PR:
# https://github.com/IdentityPython/pyjwkest/pull/107
postPatch = ''
substituteInPlace setup.py \
--replace-fail '"future"' ""
'';
dependencies = [
pycryptodomex
requests
six
];
nativeCheckInputs = [ pytestCheckHook ];
pythonImportsCheck = [ "jwkest" ];
meta = {
description = "Implementation of JWT, JWS, JWE and JWK";
homepage = "https://github.com/IdentityPython/pyjwkest";
license = lib.licenses.asl20;
};
}
|