nixpkgs/pkgs/development/python-modules/hawkmoth/default.nix
Robert Schütz d3215831d2 python3Packages.clang: rename from libclang
The project name (e.g. on PyPI) is clang. The project called libclang
can be found at https://github.com/sighingnow/libclang instead.
2026-06-18 15:04:24 -07:00

47 lines
915 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
hatchling,
clang,
sphinx,
llvmPackages,
pytestCheckHook,
strictyaml,
}:
buildPythonPackage rec {
pname = "hawkmoth";
version = "0.22.0";
pyproject = true;
src = fetchFromGitHub {
owner = "jnikula";
repo = "hawkmoth";
tag = "v${version}";
hash = "sha256-iFyTayPC4TWOfTZrfJJILJyi5BWrsVLwnSFnSeMpB2c=";
};
build-system = [ hatchling ];
dependencies = [
clang
sphinx
];
propagatedBuildInputs = [ clang ];
nativeCheckInputs = [
llvmPackages.clang
pytestCheckHook
strictyaml
];
pythonImportsCheck = [ "hawkmoth" ];
meta = {
description = "Sphinx Autodoc for C";
homepage = "https://jnikula.github.io/hawkmoth/";
changelog = "https://github.com/jnikula/hawkmoth/blob/${src.tag}/CHANGELOG.rst";
license = lib.licenses.bsd2;
maintainers = [ lib.maintainers.cynerd ];
};
}