about summary refs log tree commit diff
path: root/pkgs/development/python-modules/klein
diff options
context:
space:
mode:
Diffstat (limited to 'pkgs/development/python-modules/klein')
-rw-r--r--pkgs/development/python-modules/klein/default.nix58
1 files changed, 28 insertions, 30 deletions
diff --git a/pkgs/development/python-modules/klein/default.nix b/pkgs/development/python-modules/klein/default.nix
index dd9d154cba63..03580725752d 100644
--- a/pkgs/development/python-modules/klein/default.nix
+++ b/pkgs/development/python-modules/klein/default.nix
@@ -1,47 +1,47 @@
-{ lib
-, buildPythonPackage
-, fetchFromGitHub
-, pythonOlder
+{
+  lib,
+  buildPythonPackage,
+  fetchFromGitHub,
+  pythonOlder,
 
-# build-system
-, setuptools
-, wheel
+  # build-system
+  setuptools,
 
-# dependencies
-, attrs
-, hyperlink
-, incremental
-, tubes
-, twisted
-, werkzeug
-, zope-interface
+  # dependencies
+  attrs,
+  hyperlink,
+  incremental,
+  tubes,
+  twisted,
+  werkzeug,
+  zope-interface,
 
-# tests
-, idna
-, python
-, treq
+  # tests
+  idna,
+  python,
+  treq,
 }:
 
 buildPythonPackage rec {
   pname = "klein";
-  version = "unstable-2023-09-05";
-  format = "pyproject";
+  version = "24.8.0";
+  pyproject = true;
 
   disabled = pythonOlder "3.7";
 
   src = fetchFromGitHub {
     owner = "twisted";
-    repo = pname;
-    rev = "44b356ede27a667252ae5392014c802f0492c017";
-    hash = "sha256-zHdyyx5IseFWr25BGLL0dDM8/5BDehsvbxIci+DEo9s=";
+    repo = "klein";
+    rev = "refs/tags/${version}";
+    hash = "sha256-2/zl4fS9ZP73quPmGnz2+brEt84ODgVS89Om/cUsj0M=";
   };
 
-  nativeBuildInputs = [
+  build-system = [
+    incremental
     setuptools
-    wheel
   ];
 
-  propagatedBuildInputs = [
+  dependencies = [
     attrs
     hyperlink
     incremental
@@ -62,9 +62,7 @@ buildPythonPackage rec {
     runHook postCheck
   '';
 
-  pythonImportsCheck = [
-    "klein"
-  ];
+  pythonImportsCheck = [ "klein" ];
 
   meta = with lib; {
     changelog = "https://github.com/twisted/klein/releases/tag/${version}";