Merge pull request #233043 from rhendric/rhendric/python311Packages.python-ctags3

python311Packages.python-ctags3: fix build

authored by Robert Scott and committed by GitHub 532f8cd0 6a8f91d0

+16 -5
+16 -5
pkgs/development/python-modules/python-ctags3/default.nix
··· 1 - { lib, buildPythonPackage, fetchPypi }: 1 + { lib, buildPythonPackage, cython, fetchFromGitHub }: 2 2 3 3 buildPythonPackage rec { 4 4 pname = "python-ctags3"; 5 5 version = "1.5.0"; 6 6 7 - src = fetchPypi { 8 - inherit pname version; 9 - sha256 = "a2cb0b35f0d67bab47045d803dce8291a1500af11832b154f69b3785f2130daa"; 7 + src = fetchFromGitHub { 8 + owner = "universal-ctags"; 9 + repo = pname; 10 + rev = version; 11 + hash = "sha256-XVsZckNVJ1H5q8FzqoVd1UWRw0zOygvRtb7arX9dwGE="; 10 12 }; 11 13 14 + nativeBuildInputs = [ 15 + cython 16 + ]; 17 + 18 + # Regenerating the bindings keeps later versions of Python happy 19 + postPatch = '' 20 + cython src/_readtags.pyx 21 + ''; 22 + 12 23 meta = with lib; { 24 + inherit (src.meta) homepage; 13 25 description = "Ctags indexing python bindings"; 14 - homepage = "https://github.com/jonashaag/python-ctags3"; 15 26 license = licenses.lgpl3Plus; 16 27 }; 17 28 }