about summary refs log tree commit diff
path: root/nixpkgs/pkgs/development/python-modules/python-mbedtls/default.nix
blob: 967bade85b3b209e03593b4ba21e58e355891a83 (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
49
50
{ lib
, buildPythonPackage
, fetchFromGitHub
, certifi
, cython
, mbedtls_2
, pytestCheckHook
, setuptools
, typing-extensions
}:

buildPythonPackage rec {
  pname = "python-mbedtls";
  version = "2.8.0";
  format = "setuptools";

  src = fetchFromGitHub {
    owner = "Synss";
    repo = "python-mbedtls";
    rev = version;
    hash = "sha256-gMFludfAprQ/1JR77Ee6/xVvGLJ9pY1LrouLpSKVrzk=";
  };

  nativeBuildInputs = [
    cython
    setuptools
  ];

  buildInputs = [
    mbedtls_2
  ];

  propagatedBuildInputs = [
    certifi
    typing-extensions
  ];

  nativeCheckInputs = [
    pytestCheckHook
  ];

  pythonImportsCheck = [ "mbedtls" ];

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