summary refs log tree commit diff
diff options
context:
space:
mode:
authorRobert Scott <code@humanleg.org.uk>2023-05-20 18:31:53 +0100
committerGitHub <noreply@github.com>2023-05-20 18:31:53 +0100
commit532f8cd016bcce18daa002e64ff6d5fef5a4e6a7 (patch)
tree7707a6c6e684f61ae765ec4d87464e37b8e94e70
parent6a8f91d0d35bc728ee79f40ecf09064f26504a1a (diff)
parent67b35dd7ee6dc85dbd3fa290252b5f62a3779d91 (diff)
Merge pull request #233043 from rhendric/rhendric/python311Packages.python-ctags3
python311Packages.python-ctags3: fix build
-rw-r--r--pkgs/development/python-modules/python-ctags3/default.nix21
1 files changed, 16 insertions, 5 deletions
diff --git a/pkgs/development/python-modules/python-ctags3/default.nix b/pkgs/development/python-modules/python-ctags3/default.nix
index 6ef8a757093f2..4c987250e49fe 100644
--- a/pkgs/development/python-modules/python-ctags3/default.nix
+++ b/pkgs/development/python-modules/python-ctags3/default.nix
@@ -1,17 +1,28 @@
-{ lib, buildPythonPackage, fetchPypi }:
+{ lib, buildPythonPackage, cython, fetchFromGitHub }:
 
 buildPythonPackage rec {
   pname = "python-ctags3";
   version = "1.5.0";
 
-  src = fetchPypi {
-    inherit pname version;
-    sha256 = "a2cb0b35f0d67bab47045d803dce8291a1500af11832b154f69b3785f2130daa";
+  src = fetchFromGitHub {
+    owner = "universal-ctags";
+    repo = pname;
+    rev = version;
+    hash = "sha256-XVsZckNVJ1H5q8FzqoVd1UWRw0zOygvRtb7arX9dwGE=";
   };
 
+  nativeBuildInputs = [
+    cython
+  ];
+
+  # Regenerating the bindings keeps later versions of Python happy
+  postPatch = ''
+    cython src/_readtags.pyx
+  '';
+
   meta = with lib; {
+    inherit (src.meta) homepage;
     description = "Ctags indexing python bindings";
-    homepage = "https://github.com/jonashaag/python-ctags3";
     license = licenses.lgpl3Plus;
   };
 }