1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 hatchling,
6 libclang,
7 sphinx,
8 clang,
9 pytestCheckHook,
10 strictyaml,
11}:
12
13buildPythonPackage rec {
14 pname = "hawkmoth";
15 version = "0.21.0";
16 pyproject = true;
17
18 src = fetchFromGitHub {
19 owner = "jnikula";
20 repo = "hawkmoth";
21 tag = "v${version}";
22 hash = "sha256-ePi7whsibStYwG75Eso7A0GkSbn8JesacaDU5IRF9iE=";
23 };
24
25 build-system = [ hatchling ];
26
27 dependencies = [
28 libclang
29 sphinx
30 ];
31 propagatedBuildInputs = [ clang ];
32
33 nativeCheckInputs = [
34 clang
35 pytestCheckHook
36 strictyaml
37 ];
38 pythonImportsCheck = [ "hawkmoth" ];
39
40 meta = {
41 description = "Sphinx Autodoc for C";
42 homepage = "https://jnikula.github.io/hawkmoth/";
43 changelog = "https://github.com/jnikula/hawkmoth/blob/v${version}/CHANGELOG.rst";
44 license = lib.licenses.bsd2;
45 maintainers = [ lib.maintainers.cynerd ];
46 };
47}