1{ lib
2, stdenv
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.3";
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-6VvzUKKUB5SkmvC7PFPqGayc51t3PTMPwrxgZI5+jHA=";
26 };
27
28 nativeBuildInputs = [
29 flit-core
30 ];
31
32 propagatedBuildInputs = [
33 numpy
34 treelog
35 stringly
36 bottombar
37 ];
38
39 nativeCheckInputs = [
40 pytestCheckHook
41 ];
42
43 pythonImportsCheck = [
44 "nutils"
45 ];
46
47 disabledTestPaths = [
48 # AttributeError: type object 'setup' has no attribute '__code__'
49 "tests/test_cli.py"
50 ];
51
52 meta = with lib; {
53 description = "Numerical Utilities for Finite Element Analysis";
54 changelog = "https://github.com/evalf/nutils/releases/tag/v${version}";
55 homepage = "https://www.nutils.org/";
56 license = licenses.mit;
57 maintainers = with maintainers; [ Scriptkiddi ];
58 };
59}