Something went wrong. Try again.
lol
Something went wrong. Try again.
1.5 kB · 83 lines
Nix
at master
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384{ lib, buildPythonPackage, fetchFromGitHub, scikit-build-core, nanobind, cmake, ninja, pkg-config, blas, lapack, numpy, sympy, scipy, matplotlib, fenics-ufl, pytest-xdist, pytestCheckHook,}:
buildPythonPackage (finalAttrs: { pname = "fenics-basix"; version = "0.10.0.post0"; pyproject = true;
src = fetchFromGitHub { owner = "fenics"; repo = "basix"; tag = "v${finalAttrs.version}"; hash = "sha256-iKG6Cs28D0scPEIRKoGk/CgquKzGZvIjf4UIj4MQXHA="; };
dontUseCmakeConfigure = true;
build-system = [ scikit-build-core nanobind ];
nativeBuildInputs = [ cmake ninja pkg-config ];
dependencies = [ numpy ];
buildInputs = [ blas lapack ];
cmakeFlags = [ # Prefer finding BLAS and LAPACK via pkg-config. # Avoid using the Accelerate.framework from the Darwin SDK. # Also, avoid mistaking BLAS for LAPACK. (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/v${finalAttrs.version}"; license = lib.licenses.mit; maintainers = with lib.maintainers; [ qbisi ]; };})