about summary refs log tree commit diff
path: root/pkgs/development/python-modules/tlslite-ng/default.nix
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/tlslite-ng/default.nix')
-rw-r--r--pkgs/development/python-modules/tlslite-ng/default.nix39
1 files changed, 29 insertions, 10 deletions
diff --git a/pkgs/development/python-modules/tlslite-ng/default.nix b/pkgs/development/python-modules/tlslite-ng/default.nix
index 266acc638b8fc..1d715c6758f74 100644
--- a/pkgs/development/python-modules/tlslite-ng/default.nix
+++ b/pkgs/development/python-modules/tlslite-ng/default.nix
@@ -1,26 +1,45 @@
 {
   lib,
   buildPythonPackage,
-  fetchPypi,
+  fetchFromGitHub,
+  setuptools,
   ecdsa,
+  hypothesis,
+  pythonAtLeast,
+  pytestCheckHook,
 }:
 
-buildPythonPackage rec {
+buildPythonPackage {
   pname = "tlslite-ng";
-  version = "0.7.6";
-  format = "setuptools";
+  version = "0.8.0b1-unstable-2024-06-24";
+  pyproject = true;
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "6ab56f0e9629ce3d807eb528c9112defa9f2e00af2b2961254e8429ca5c1ff00";
+  src = fetchFromGitHub {
+    owner = "tlsfuzzer";
+    repo = "tlslite-ng";
+    rev = "4d2c6b8fc8d14bb5c90c8360bdb6f617e8e38591";
+    hash = "sha256-VCQjxZIs4rzlFrIakXI7YeLz7Ws9WRf8zGPcSryO9Ko=";
   };
 
-  buildInputs = [ ecdsa ];
+  build-system = [ setuptools ];
+
+  dependencies = [ ecdsa ];
+
+  nativeCheckInputs = [
+    hypothesis
+    pytestCheckHook
+  ];
+
+  # This file imports asyncore which is removed in 3.12
+  disabledTestPaths = lib.optionals (pythonAtLeast "3.12") [
+    "tlslite/integration/tlsasyncdispatchermixin.py"
+  ];
 
   meta = with lib; {
+    changelog = "https://github.com/tlsfuzzer/tlslite-ng/releases/tag/v${version}";
     description = "Pure python implementation of SSL and TLS";
-    homepage = "https://pypi.python.org/pypi/tlslite-ng";
-    license = licenses.lgpl2;
+    homepage = "https://github.com/tlsfuzzer/tlslite-ng";
+    license = licenses.lgpl21Only;
     maintainers = [ ];
   };
 }