1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 setuptools,
6 numpy,
7 pytestCheckHook,
8}:
9
10buildPythonPackage rec {
11 pname = "fenics-ufl";
12 version = "2025.1.0";
13 pyproject = true;
14
15 src = fetchFromGitHub {
16 owner = "fenics";
17 repo = "ufl";
18 tag = version;
19 hash = "sha256-4WKUtW6cLvgazyjp1vpDWZa54QeCbbP3LE1C3dv5QFc=";
20 };
21
22 build-system = [
23 setuptools
24 ];
25
26 dependencies = [
27 numpy
28 ];
29
30 pythonImportsCheck = [
31 "ufl"
32 "ufl.algorithms"
33 "ufl.core"
34 "ufl.corealg"
35 "ufl.formatting"
36 "ufl.utils"
37 ];
38
39 nativeCheckInputs = [ pytestCheckHook ];
40
41 meta = {
42 homepage = "https://fenicsproject.org";
43 downloadPage = "https://github.com/fenics/ufl";
44 description = "Unified Form Language";
45 changelog = "https://github.com/fenics/ufl/releases/tag/${src.tag}";
46 license = lib.licenses.lgpl3Plus;
47 maintainers = with lib.maintainers; [ qbisi ];
48 };
49}