summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/cgen/default.nix
blob: 453de0280a5bfee11f6020dc22cc930b6435d3e0 (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
33
34
35
36
37
38
{
  lib,
  buildPythonPackage,
  fetchPypi,
  hatchling,
  pytools,
  numpy,
  typing-extensions,
  pytestCheckHook,
}:

buildPythonPackage (finalAttrs: {
  pname = "cgen";
  version = "2025.1";
  pyproject = true;

  src = fetchPypi {
    inherit (finalAttrs) pname version;
    hash = "sha256-efAeAQ1JwT5YtMqPLUmWprcXiWj18tkGJiczSArnotQ=";
  };

  build-system = [ hatchling ];

  dependencies = [
    pytools
    numpy
    typing-extensions
  ];

  nativeCheckInputs = [ pytestCheckHook ];

  meta = {
    description = "C/C++ source generation from an AST";
    homepage = "https://github.com/inducer/cgen";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ sigmanificient ];
  };
})