1{
2 lib,
3 buildPythonPackage,
4 cryptography,
5 fetchFromGitHub,
6 poetry-core,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "josepy";
12 version = "2.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "certbot";
17 repo = "josepy";
18 tag = "v${version}";
19 hash = "sha256-gXXsipvlxLs/dc0rjnaKlR4lySDfDfpo0tcSVrOz9P4=";
20 };
21
22 build-system = [ poetry-core ];
23
24 dependencies = [
25 cryptography
26 ];
27
28 nativeCheckInputs = [ pytestCheckHook ];
29
30 pythonImportsCheck = [ "josepy" ];
31
32 meta = {
33 changelog = "https://github.com/certbot/josepy/blob/${src.tag}/CHANGELOG.rst";
34 description = "JOSE protocol implementation in Python";
35 mainProgram = "jws";
36 homepage = "https://github.com/certbot/josepy";
37 license = lib.licenses.asl20;
38 maintainers = with lib.maintainers; [ dotlambda ];
39 };
40}