9c6ee729d6
GitOrigin-RevId: 6cee3b5893090b0f5f0a06b4cf42ca4e60e5d222
59 lines
1.1 KiB
Nix
59 lines
1.1 KiB
Nix
{ lib
|
|
, stdenv
|
|
, buildPythonPackage
|
|
, fetchFromGitHub
|
|
, numpy
|
|
, treelog
|
|
, stringly
|
|
, flit-core
|
|
, bottombar
|
|
, pytestCheckHook
|
|
, pythonOlder
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "nutils";
|
|
version = "7.3";
|
|
format = "pyproject";
|
|
|
|
disabled = pythonOlder "3.7";
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "evalf";
|
|
repo = "nutils";
|
|
rev = "refs/tags/v${version}";
|
|
hash = "sha256-3VtQFnR8vihxoIyRkbE1a1Rs8Np3/79PWNKReTBZDg8=";
|
|
};
|
|
|
|
nativeBuildInputs = [
|
|
flit-core
|
|
];
|
|
|
|
propagatedBuildInputs = [
|
|
numpy
|
|
treelog
|
|
stringly
|
|
bottombar
|
|
];
|
|
|
|
nativeCheckInputs = [
|
|
pytestCheckHook
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"nutils"
|
|
];
|
|
|
|
disabledTestPaths = [
|
|
# AttributeError: type object 'setup' has no attribute '__code__'
|
|
"tests/test_cli.py"
|
|
];
|
|
|
|
meta = with lib; {
|
|
description = "Numerical Utilities for Finite Element Analysis";
|
|
changelog = "https://github.com/evalf/nutils/releases/tag/v${version}";
|
|
homepage = "https://www.nutils.org/";
|
|
license = licenses.mit;
|
|
maintainers = with maintainers; [ Scriptkiddi ];
|
|
};
|
|
}
|