summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/python-mbedtls/default.nix
blob: 20bfc02d6bded5a8530e0fd6d8a333a7051833e2 (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
49
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  certifi,
  cython,
  mbedtls_2,
  pytestCheckHook,
  setuptools,
  typing-extensions,
}:

buildPythonPackage rec {
  pname = "python-mbedtls";
  version = "2.10.1";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "Synss";
    repo = "python-mbedtls";
    rev = version;
    hash = "sha256-eKKb12G/0QAcwtv5Yk/92QXhMipeKOfKR1JEaNHDIlg=";
  };

  build-system = [
    cython
    setuptools
  ];

  buildInputs = [ mbedtls_2 ];

  dependencies = [
    certifi
    typing-extensions
  ];

  __darwinAllowLocalNetworking = true;

  nativeCheckInputs = [ pytestCheckHook ];

  pythonImportsCheck = [ "mbedtls" ];

  meta = {
    description = "Cryptographic library with an mbed TLS back end";
    homepage = "https://github.com/Synss/python-mbedtls";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ SuperSandro2000 ];
  };
}