1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5 numpy,
6 treelog,
7 stringly,
8 flit-core,
9 bottombar,
10 pytestCheckHook,
11 pythonOlder,
12}:
13
14buildPythonPackage rec {
15 pname = "nutils";
16 version = "8.7";
17 format = "pyproject";
18
19 disabled = pythonOlder "3.7";
20
21 src = fetchFromGitHub {
22 owner = "evalf";
23 repo = "nutils";
24 rev = "refs/tags/v${version}";
25 hash = "sha256-wxouS0FXrdIhm6nTVBuzkwHceJnZ7f7k8nMFxFsZchE=";
26 };
27
28 nativeBuildInputs = [ flit-core ];
29
30 propagatedBuildInputs = [
31 numpy
32 treelog
33 stringly
34 bottombar
35 ];
36
37 nativeCheckInputs = [ pytestCheckHook ];
38
39 pythonImportsCheck = [ "nutils" ];
40
41 disabledTestPaths = [
42 # AttributeError: type object 'setup' has no attribute '__code__'
43 "tests/test_cli.py"
44 ];
45
46 meta = with lib; {
47 description = "Numerical Utilities for Finite Element Analysis";
48 changelog = "https://github.com/evalf/nutils/releases/tag/v${version}";
49 homepage = "https://www.nutils.org/";
50 license = licenses.mit;
51 maintainers = with maintainers; [ Scriptkiddi ];
52 };
53}