python3Packages.clang: rename from libclang (#533113)

This commit is contained in:
dotlambda 2026-06-22 17:28:25 +00:00 committed by GitHub
commit 012f633df4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 22 additions and 18 deletions

View file

@ -34,7 +34,7 @@ let
pillow
lz4
jinja2
libclang
clang
]
);

View file

@ -115,7 +115,7 @@ stdenv.mkDerivation rec {
++ lib.optionals (enableCxx || enablePython) [
(python3.pythonOnBuildForHost.withPackages (ps: [
ps.setuptools
ps.libclang
ps.clang
]))
]
++ lib.optionals enablePython [

View file

@ -25,7 +25,7 @@ let
'';
in
buildPythonPackage {
pname = "libclang";
pname = "clang";
pyproject = true;
inherit (libclang) version src;

View file

@ -3,9 +3,9 @@
buildPythonPackage,
fetchFromGitHub,
hatchling,
libclang,
sphinx,
clang,
sphinx,
llvmPackages,
pytestCheckHook,
strictyaml,
}:
@ -25,13 +25,13 @@ buildPythonPackage rec {
build-system = [ hatchling ];
dependencies = [
libclang
clang
sphinx
];
propagatedBuildInputs = [ clang ];
nativeCheckInputs = [
clang
llvmPackages.clang
pytestCheckHook
strictyaml
];

View file

@ -7,7 +7,7 @@
toPythonModule,
# build-system
libclang,
clang,
pipcl,
psutil,
setuptools,
@ -75,7 +75,7 @@ buildPythonPackage (finalAttrs: {
'';
build-system = [
libclang
clang
pipcl
swig
setuptools

View file

@ -3,7 +3,6 @@
buildPythonPackage,
clang,
fetchFromGitHub,
libclang,
llvmPackages,
msgpack,
pkg-config,
@ -42,13 +41,13 @@ buildPythonPackage (finalAttrs: {
];
nativeBuildInputs = [
clang
llvmPackages.clang
llvmPackages.libclang.lib
pkg-config
];
env.LIBCLANG_PATH = "${llvmPackages.libclang.lib}/lib";
env.LD_LIBRARY_PATH = "${llvmPackages.libclang.lib}/lib:${lib.getLib libclang}/lib";
env.LD_LIBRARY_PATH = "${llvmPackages.libclang.lib}/lib:${lib.getLib clang}/lib";
prePatch = ''
# maturin can't find the file

View file

@ -19,7 +19,7 @@
google-pasta,
grpcio,
h5py,
libclang,
clang,
numpy,
opt-einsum,
packaging,
@ -95,7 +95,7 @@ buildPythonPackage (finalAttrs: {
google-pasta
grpcio
h5py
libclang
clang
ml-dtypes
numpy
opt-einsum

View file

@ -322,6 +322,7 @@ mapAliases {
ledger-agent = throw "ledger-agent has been removed because upstream dropped Ledger support"; # Added 2026-03-11
ledger_agent = throw "ledger-agent has been removed because upstream dropped Ledger support"; # Added 2026-03-11
libarcus = throw "'libarcus' has been removed, as it was unmaintained in nixpkgs"; # Added 2026-05-22
libclang = clang; # added 2026-06-18
libgpiod = gpiod; # added 2026-03-30
libpyfoscam = throw "libpyfoscam was removed because Home Assistant switched to libpyfoscamcgi"; # added 2025-07-03
line_profiler = throw "'line_profiler' has been renamed to/replaced by 'line-profiler'"; # Converted to throw 2025-10-29

View file

@ -2797,7 +2797,11 @@ self: super: with self; {
ckcc-protocol = callPackage ../development/python-modules/ckcc-protocol { };
ckzg = callPackage ../development/python-modules/ckzg { };
ckzg = callPackage ../development/python-modules/ckzg {
inherit (pkgs) clang;
};
clang = callPackage ../development/python-modules/clang { };
clarabel = callPackage ../development/python-modules/clarabel { };
@ -8849,8 +8853,6 @@ self: super: with self; {
libbs = callPackage ../development/python-modules/libbs { };
libclang = callPackage ../development/python-modules/libclang { };
libcloud = callPackage ../development/python-modules/libcloud { };
libcomps = lib.pipe pkgs.libcomps [
@ -14839,7 +14841,9 @@ self: super: with self; {
callPackage ../development/python-modules/pyobjc-framework-libdispatch
{ };
pyobjus = callPackage ../development/python-modules/pyobjus { };
pyobjus = callPackage ../development/python-modules/pyobjus {
inherit (pkgs) clang;
};
pyocd = callPackage ../development/python-modules/pyocd { };