blob: a48098db4a48a7cc126a9eb45efc6a79f2e69dc6 (
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
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
setuptools,
# dependencies
cryptography,
pycryptodome,
# tests
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "joserfc";
version = "0.12.0";
pyproject = true;
src = fetchFromGitHub {
owner = "authlib";
repo = "joserfc";
rev = "refs/tags/${version}";
hash = "sha256-mnJzhkdX0+5Y/XwGlHgxLP0me8Cs/Cl3p46KgTKw2ug=";
};
build-system = [ setuptools ];
dependencies = [ cryptography ];
optional-dependencies = {
drafts = [ pycryptodome ];
};
nativeCheckInputs = [ pytestCheckHook ] ++ lib.flatten (lib.attrValues optional-dependencies);
pythonImportsCheck = [ "joserfc" ];
meta = with lib; {
description = "Implementations of JOSE RFCs in Python";
homepage = "https://github.com/authlib/joserfc";
license = licenses.bsd3;
maintainers = with maintainers; [ ];
};
}
|