about summary refs log tree commit diff
path: root/pkgs/development/python-modules/python-ctags3/default.nix
blob: 245fa3209ccb06f39040b3c220cd68cc8d515116 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{ lib, buildPythonPackage, cython, fetchFromGitHub }:

buildPythonPackage rec {
  pname = "python-ctags3";
  version = "1.5.0";
  format = "setuptools";

  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";
    license = licenses.lgpl3Plus;
  };
}