1{
2 lib,
3 buildPythonPackage,
4 fetchPypi,
5 cryptography,
6 deprecated,
7 pytestCheckHook,
8 pythonOlder,
9 setuptools,
10 typing-extensions,
11}:
12
13buildPythonPackage rec {
14 pname = "jwcrypto";
15 version = "1.5.6";
16 pyproject = true;
17
18 disabled = pythonOlder "3.8";
19
20 src = fetchPypi {
21 inherit pname version;
22 hash = "sha256-dxqHdioMCBrmFmlYqVT4CEiCCyqwZpN9yLg3nWWxsDk=";
23 };
24
25 nativeBuildInputs = [ setuptools ];
26
27 propagatedBuildInputs = [
28 cryptography
29 deprecated
30 typing-extensions
31 ];
32
33 nativeCheckInputs = [ pytestCheckHook ];
34
35 pythonImportsCheck = [ "jwcrypto" ];
36
37 meta = with lib; {
38 description = "Implementation of JOSE Web standards";
39 homepage = "https://github.com/latchset/jwcrypto";
40 changelog = "https://github.com/latchset/jwcrypto/releases/tag/v${version}";
41 license = licenses.lgpl3Plus;
42 maintainers = [ ];
43 };
44}