summaryrefslogtreecommitdiffstats
path: root/pkgs/development/python-modules/ast-grep-cli/default.nix
blob: fd48727417eef22108d0f1a646547468bf69c934 (plain)
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
30
31
32
{
  ast-grep,
  buildPythonPackage,
  flit-core,
}:

buildPythonPackage {
  pname = "ast-grep-cli";
  inherit (ast-grep) version;
  pyproject = true;

  src = ./stub;

  postUnpack = ''
    substituteInPlace "$sourceRoot/pyproject.toml" \
      --subst-var version
  '';

  build-system = [ flit-core ];

  pythonImportsCheck = [ "ast_grep_cli" ];

  meta = {
    inherit (ast-grep.meta)
      description
      homepage
      changelog
      license
      maintainers
      ;
  };
}