Files
nixpkgs/pkgs/development/python-modules/nutils/default.nix
T
Ihar Hrachyshka 567e8dfd8e treewide: clean up 'meta = with' pattern
This commit was created by a combination of scripts and tools:
- an ast-grep script to prefix things in meta with `lib.`,
- a modified nixf-diagnose / nixf combination to remove unused `with
lib;`, and
- regular nixfmt.

Co-authored-by: Wolfgang Walther <walther@technowledgy.de>
2025-12-10 18:09:49 +01:00

78 lines
1.5 KiB
Nix

{
lib,
buildPythonPackage,
fetchFromGitHub,
flit-core,
appdirs,
matplotlib,
meshio,
numpy,
nutils-poly,
scipy,
stringly,
treelog,
pytestCheckHook,
pythonOlder,
pkgs,
}:
buildPythonPackage rec {
pname = "nutils";
version = "9.1";
pyproject = true;
disabled = pythonOlder "3.8";
src = fetchFromGitHub {
owner = "evalf";
repo = "nutils";
tag = "v${version}";
hash = "sha256-NmWoRDYOfSweqUhw0KTdXubWgXmVr+odrs1dMLXdHEI=";
};
build-system = [ flit-core ];
dependencies = [
appdirs
numpy
nutils-poly
stringly
treelog
];
optional-dependencies = {
export-mpl = [ matplotlib ];
# TODO: matrix-mkl = [ mkl ];
matrix-scipy = [ scipy ];
import-gmsh = [ meshio ];
};
pythonRelaxDeps = [ "psutil" ];
nativeCheckInputs = [
pkgs.graphviz
pytestCheckHook
]
++ lib.concatAttrValues optional-dependencies;
disabledTests = [
# Error: invalid value 'x' for farg: loading 'x' as float
"run.test_badvalue"
"choose.test_badvalue"
# ModuleNotFoundError: No module named 'stringly'
"picklability.test_basis"
"picklability.test_domain"
"picklability.test_geom"
];
pythonImportsCheck = [ "nutils" ];
meta = {
description = "Numerical Utilities for Finite Element Analysis";
changelog = "https://github.com/evalf/nutils/releases/tag/${src.tag}";
homepage = "https://www.nutils.org/";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ Scriptkiddi ];
};
}