blob: 3f0907a2eaab46ebb8d83afdf5967738e6666b52 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
|
{
lib,
stdenv,
buildPythonPackage,
fetchPypi,
numpy,
pytestCheckHook,
setuptools,
setuptools-scm,
scipy,
}:
buildPythonPackage rec {
pname = "dmsuite";
version = "0.3.0";
pyproject = true;
src = fetchPypi {
inherit pname version;
hash = "sha256-IqLsHkGNgPz2yZm0QMyMMo6Mr2RsU2DPGxYpoNwC3fs=";
};
build-system = [
setuptools
setuptools-scm
];
dependencies = [
numpy
scipy
];
nativeCheckInputs = [
pytestCheckHook
];
# Slight precision error probably due to different BLAS backend on Darwin
disabledTests = lib.optionals (stdenv.hostPlatform.isDarwin && stdenv.hostPlatform.isAarch64) [
"test_cheb_scaled"
];
pythonImportsCheck = [ "dmsuite" ];
meta = {
description = "Scientific library providing a collection of spectral collocation differentiation matrices";
homepage = "https://github.com/labrosse/dmsuite";
changelog = "https://github.com/labrosse/dmsuite/releases/tag/v${version}";
license = lib.licenses.gpl2Only;
maintainers = with lib.maintainers; [ loicreynier ];
};
}
|