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