about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/josepy/default.nix
blob: 5332bf6c4381790ff0677aad62ac61bd070a3d21 (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
48
{ lib
, buildPythonPackage
, cryptography
, fetchPypi
, poetry-core
, pyopenssl
, pytestCheckHook
, pythonOlder
}:

buildPythonPackage rec {
  pname = "josepy";
  version = "1.14.0";
  pyproject = true;

  disabled = pythonOlder "3.7";

  src = fetchPypi {
    inherit pname version;
    hash = "sha256-MIs7+c6CWtTUu6djcs8ZtdwcLOlqnSmPlkKXXmS9E90=";
  };

  nativeBuildInputs = [
    poetry-core
  ];

  propagatedBuildInputs = [
    pyopenssl
    cryptography
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [
    "josepy"
  ];

  meta = with lib; {
    changelog = "https://github.com/certbot/josepy/blob/v${version}/CHANGELOG.rst";
    description = "JOSE protocol implementation in Python";
    mainProgram = "jws";
    homepage = "https://github.com/certbot/josepy";
    license = licenses.asl20;
    maintainers = with maintainers; [ dotlambda ];
  };
}