1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 cython,
8 extension-helpers,
9 numpy,
10 setuptools,
11 setuptools-scm,
12
13 # dependencies
14 hankel,
15 emcee,
16 meshio,
17 pyevtk,
18 scipy,
19
20 # tests
21 pytestCheckHook,
22}:
23
24buildPythonPackage rec {
25 pname = "gstools";
26 version = "1.6.1";
27 pyproject = true;
28
29 src = fetchFromGitHub {
30 owner = "GeoStat-Framework";
31 repo = "GSTools";
32 tag = "v${version}";
33 hash = "sha256-Aieuk0Xjlut8rTZoFHcBpPtyIj/fstMrHiiKyDOpQlg=";
34 };
35
36 build-system = [
37 cython
38 extension-helpers
39 numpy
40 setuptools
41 setuptools-scm
42 ];
43
44 dependencies = [
45 emcee
46 hankel
47 meshio
48 numpy
49 pyevtk
50 scipy
51 ];
52
53 pythonImportsCheck = [ "gstools" ];
54 nativeCheckInputs = [ pytestCheckHook ];
55
56 meta = {
57 description = "Geostatistical toolbox";
58 homepage = "https://github.com/GeoStat-Framework/GSTools";
59 changelog = "https://github.com/GeoStat-Framework/GSTools/blob/v${version}/CHANGELOG.md";
60 license = lib.licenses.lgpl3Only;
61 maintainers = with lib.maintainers; [ sigmanificient ];
62 };
63}