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