Files
nixpkgs/pkgs/development/python-modules/hawkmoth/default.nix
T
Karel Kočí 786c47896e python3Packages.hawkmoth: fix broken state with llvm 21 by using 20
Hawkmoth is broken with LLVM 21 release. This is already reported, but
there is no stable fix on the Hawkmoth's size, yet. Thus this changes
the used LLVM version in Hawkmoth to 20.

https://github.com/jnikula/hawkmoth/pull/291
2025-10-15 10:49:43 +02:00

53 lines
1.0 KiB
Nix

{
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 ];
};
}