1a04744f74
There is no need to disable Python packages for Python versions that are
no longer in Nixpkgs.
This change was generated using the following script:
pattern='^\s*disabled\s*=\s*pythonOlder\s*"3\.\([0-9]\|10\)"\s*;\s*$'
for f in $(find -name '*.nix'); do
grep -q "$pattern" "$f" || continue
sed -i "/$pattern/d" "$f"
if [ $(grep -c pythonOlder "$f") == 1 ]; then
sed -i '/^\s*pythonOlder,\s*$/d' "$f"
fi
nixfmt "$f"
done
75 lines
1.4 KiB
Nix
75 lines
1.4 KiB
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
flit-core,
|
|
appdirs,
|
|
matplotlib,
|
|
meshio,
|
|
numpy,
|
|
nutils-poly,
|
|
scipy,
|
|
stringly,
|
|
treelog,
|
|
pytestCheckHook,
|
|
pkgs,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nutils";
|
|
version = "9.1";
|
|
pyproject = true;
|
|
|
|
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 ];
|
|
};
|
|
}
|