summaryrefslogtreecommitdiff
path: root/pkgs/development/python-modules/hawkmoth/default.nix
blob: 03520ea155a6359c41687d0a38f60f8bca780401 (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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
{
  lib,
  buildPythonPackage,
  fetchFromGitHub,
  hatchling,
  llvmPackages_20,
  libclang,
  sphinx,
  pytestCheckHook,
  strictyaml,
}:
let
  libclang_20 = libclang.override {
    llvmPackages = llvmPackages_20;
  };

in
buildPythonPackage rec {
  pname = "hawkmoth";
  version = "0.21.0";
  pyproject = true;

  src = fetchFromGitHub {
    owner = "jnikula";
    repo = "hawkmoth";
    tag = "v${version}";
    hash = "sha256-ePi7whsibStYwG75Eso7A0GkSbn8JesacaDU5IRF9iE=";
  };

  build-system = [ hatchling ];

  dependencies = [
    libclang_20
    sphinx
  ];
  propagatedBuildInputs = [ llvmPackages_20.clang ];

  nativeCheckInputs = [
    llvmPackages_20.clang
    pytestCheckHook
    strictyaml
  ];
  pythonImportsCheck = [ "hawkmoth" ];

  meta = {
    description = "Sphinx Autodoc for C";
    homepage = "https://jnikula.github.io/hawkmoth/";
    changelog = "https://github.com/jnikula/hawkmoth/blob/v${version}/CHANGELOG.rst";
    license = lib.licenses.bsd2;
    maintainers = [ lib.maintainers.cynerd ];
  };
}