50 lines
917 B
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
numpy,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "fenics-ufl";
version = "2025.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "fenics";
repo = "ufl";
tag = version;
hash = "sha256-4WKUtW6cLvgazyjp1vpDWZa54QeCbbP3LE1C3dv5QFc=";
};
build-system = [
setuptools
];
dependencies = [
numpy
];
pythonImportsCheck = [
"ufl"
"ufl.algorithms"
"ufl.core"
"ufl.corealg"
"ufl.formatting"
"ufl.utils"
];
nativeCheckInputs = [ pytestCheckHook ];
meta = {
homepage = "https://fenicsproject.org";
downloadPage = "https://github.com/fenics/ufl";
description = "Unified Form Language";
changelog = "https://github.com/fenics/ufl/releases/tag/${src.tag}";
license = lib.licenses.lgpl3Plus;
maintainers = with lib.maintainers; [ qbisi ];
};
}