2022-05-18 14:49:53 +00:00
|
|
|
{ lib
|
|
|
|
, stdenv
|
|
|
|
, buildPythonPackage
|
|
|
|
, fetchFromGitHub
|
|
|
|
, numpy
|
|
|
|
, treelog
|
|
|
|
, stringly
|
|
|
|
, pytestCheckHook
|
|
|
|
, pythonOlder
|
|
|
|
}:
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
buildPythonPackage rec {
|
|
|
|
pname = "nutils";
|
|
|
|
version = "7.0";
|
2022-05-18 14:49:53 +00:00
|
|
|
format = "setuptools";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabled = pythonOlder "3.7";
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
src = fetchFromGitHub {
|
|
|
|
owner = "evalf";
|
|
|
|
repo = "nutils";
|
|
|
|
rev = "refs/tags/v${version}";
|
|
|
|
hash = "sha256-V7lSMhwzc9+36uXMCy5uF241XwJ62Pdf59RUulOt4i8=";
|
|
|
|
};
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
propagatedBuildInputs = [
|
|
|
|
numpy
|
|
|
|
treelog
|
|
|
|
stringly
|
|
|
|
];
|
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
checkInputs = [
|
|
|
|
pytestCheckHook
|
|
|
|
];
|
|
|
|
|
|
|
|
pythonImportsCheck = [
|
|
|
|
"nutils"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
2022-05-18 14:49:53 +00:00
|
|
|
disabledTestPaths = [
|
|
|
|
# AttributeError: type object 'setup' has no attribute '__code__'
|
|
|
|
"tests/test_cli.py"
|
|
|
|
];
|
2022-04-27 09:35:20 +00:00
|
|
|
|
|
|
|
meta = with lib; {
|
|
|
|
description = "Numerical Utilities for Finite Element Analysis";
|
|
|
|
homepage = "https://www.nutils.org/";
|
|
|
|
license = licenses.mit;
|
2022-05-18 14:49:53 +00:00
|
|
|
broken = stdenv.hostPlatform.isAarch64;
|
|
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
2022-04-27 09:35:20 +00:00
|
|
|
};
|
|
|
|
}
|