1{
2 lib,
3 buildPythonPackage,
4 ecdsa,
5 fetchFromGitHub,
6 hypothesis,
7 pytestCheckHook,
8 pythonAtLeast,
9 setuptools,
10}:
11
12buildPythonPackage rec {
13 pname = "tlslite-ng";
14 version = "0.8.2";
15 pyproject = true;
16
17 src = fetchFromGitHub {
18 owner = "tlsfuzzer";
19 repo = "tlslite-ng";
20 tag = "v${version}";
21 hash = "sha256-lKSFPJ4Dm8o1zUgvXjUUpStV5M+xf7s6wOg2ceYbpbw=";
22 };
23
24 build-system = [ setuptools ];
25
26 dependencies = [ ecdsa ];
27
28 nativeCheckInputs = [
29 hypothesis
30 pytestCheckHook
31 ];
32
33 # This file imports asyncore which is removed in 3.12
34 disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
35 "tlslite/integration/tlsasyncdispatchermixin.py"
36 ];
37
38 meta = with lib; {
39 description = "Implementation of SSL and TLS";
40 homepage = "https://github.com/tlsfuzzer/tlslite-ng";
41 changelog = "https://github.com/tlsfuzzer/tlslite-ng/releases/tag/${src.tag}";
42 license = licenses.lgpl21Only;
43 maintainers = [ ];
44 };
45}