depot/third_party/nixpkgs/pkgs/development/python-modules/nutils/default.nix
Default email fa5436e0a7 Project import generated by Copybara.
GitOrigin-RevId: e8057b67ebf307f01bdcc8fba94d94f75039d1f6
2024-06-05 17:53:02 +02:00

54 lines
1.1 KiB
Nix

{
lib,
stdenv,
buildPythonPackage,
fetchFromGitHub,
numpy,
treelog,
stringly,
flit-core,
bottombar,
pytestCheckHook,
pythonOlder,
}:
buildPythonPackage rec {
pname = "nutils";
version = "8.6";
format = "pyproject";
disabled = pythonOlder "3.7";
src = fetchFromGitHub {
owner = "evalf";
repo = "nutils";
rev = "refs/tags/v${version}";
hash = "sha256-vfdb7+jcJ5EuWDoZyRExWEPEWt+lgbzmAL3QhguLtHE=";
};
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 ];
};
}