python312Packages.fenics-basix: init at 0.9.0

This commit is contained in:
qbisi
2025-05-09 06:57:01 +08:00
parent cf62b39840
commit e4778f3cd4
2 changed files with 83 additions and 0 deletions
@@ -0,0 +1,81 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
scikit-build-core,
nanobind,
cmake,
ninja,
pkg-config,
blas,
lapack,
numpy,
sympy,
scipy,
matplotlib,
fenics-ufl,
pytest-xdist,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fenics-basix";
version = "0.9.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fenics";
repo = "basix";
tag = "v${version}";
hash = "sha256-jLQMDt6zdl+oixd5Qevn4bvxBsXpTNcbH2Os6TC9sRQ=";
};
dontUseCmakeConfigure = true;
build-system = [
scikit-build-core
nanobind
];
nativeBuildInputs = [
cmake
ninja
pkg-config
];
dependencies = [
numpy
];
buildInputs = [
blas
lapack
];
# Prefer finding BLAS and LAPACK via pkg-config.
# Avoid using the Accelerate.framework from the Darwin SDK.
# Also, avoid mistaking BLAS for LAPACK.
env.CMAKE_ARGS = lib.cmakeBool "BLA_PREFER_PKGCONFIG" true;
pythonImportsCheck = [
"basix"
];
nativeCheckInputs = [
sympy
scipy
matplotlib
fenics-ufl
pytest-xdist
pytestCheckHook
];
meta = {
homepage = "https://fenicsproject.org";
downloadPage = "https://github.com/fenics/basix";
description = "Finite element definition and tabulation runtime library";
changelog = "https://github.com/fenics/basix/releases/tag/${src.tag}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ qbisi ];
};
}
+2
View File
@@ -4859,6 +4859,8 @@ self: super: with self; {
fenics = callPackage ../development/python-modules/fenics { hdf5 = pkgs.hdf5_1_10; };
fenics-basix = callPackage ../development/python-modules/fenics-basix { };
fenics-ufl = callPackage ../development/python-modules/fenics-ufl { };
ffcv = callPackage ../development/python-modules/ffcv { };