python311Packages.python-ctags3: fix build
This commit is contained in:
parent
95483d41fa
commit
67b35dd7ee
|
@ -1,17 +1,28 @@
|
||||||
{ lib, buildPythonPackage, fetchPypi }:
|
{ lib, buildPythonPackage, cython, fetchFromGitHub }:
|
||||||
|
|
||||||
buildPythonPackage rec {
|
buildPythonPackage rec {
|
||||||
pname = "python-ctags3";
|
pname = "python-ctags3";
|
||||||
version = "1.5.0";
|
version = "1.5.0";
|
||||||
|
|
||||||
src = fetchPypi {
|
src = fetchFromGitHub {
|
||||||
inherit pname version;
|
owner = "universal-ctags";
|
||||||
sha256 = "a2cb0b35f0d67bab47045d803dce8291a1500af11832b154f69b3785f2130daa";
|
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; {
|
meta = with lib; {
|
||||||
|
inherit (src.meta) homepage;
|
||||||
description = "Ctags indexing python bindings";
|
description = "Ctags indexing python bindings";
|
||||||
homepage = "https://github.com/jonashaag/python-ctags3";
|
|
||||||
license = licenses.lgpl3Plus;
|
license = licenses.lgpl3Plus;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue