50 lines
917 B
Nix
50 lines
917 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
numpy,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "fenics-ufl";
|
|
version = "2025.2.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "fenics";
|
|
repo = "ufl";
|
|
tag = version;
|
|
hash = "sha256-REDjNiUM3bd166Pq92P9Yl4Ff9C9hFNjTWWO1FElHrU=";
|
|
};
|
|
|
|
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 ];
|
|
};
|
|
}
|