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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
|
{
lib,
buildPythonPackage,
fetchFromGitHub,
# build-system
cython,
hatch-vcs,
hatchling,
# dependencies
emcee,
gstools-cython,
hankel,
meshio,
numpy,
pyevtk,
scipy,
# optional dependencies
matplotlib,
pyvista,
# tests
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage (finalAttrs: {
pname = "gstools";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "GeoStat-Framework";
repo = "GSTools";
tag = "v${finalAttrs.version}";
hash = "sha256-rQ7mSa1BWAaRiiE6aQD6jl8BktihY9bjFJV+5eT9n/M=";
};
build-system = [
hatch-vcs
hatchling
];
dependencies = [
emcee
gstools-cython
hankel
meshio
numpy
pyevtk
scipy
];
optional-dependencies = {
plotting = [
matplotlib
pyvista
];
};
pythonImportsCheck = [ "gstools" ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
]
++ lib.concatAttrValues finalAttrs.passthru.optional-dependencies;
meta = {
description = "Geostatistical toolbox";
homepage = "https://github.com/GeoStat-Framework/GSTools";
changelog = "https://github.com/GeoStat-Framework/GSTools/blob/${finalAttrs.src.tag}/CHANGELOG.md";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ sigmanificient ];
};
})
|