1{
2 lib,
3 buildPythonPackage,
4 fetchFromGitHub,
5
6 # build-system
7 cython,
8 setuptools,
9 setuptools-scm,
10
11 # dependencies
12 numpy,
13 scipy,
14
15 # tests
16 gstools,
17 pytestCheckHook,
18 scikit-learn,
19 writableTmpDirAsHomeHook,
20}:
21
22buildPythonPackage rec {
23 pname = "pykrige";
24 version = "1.7.2";
25 pyproject = true;
26
27 src = fetchFromGitHub {
28 owner = "GeoStat-Framework";
29 repo = "PyKrige";
30 tag = "v${version}";
31 hash = "sha256-9f8SNlt4qiTlXgx2ica9Y8rmnYzQ5VarvFRfoZ9bSsY=";
32 };
33
34 build-system = [
35 cython
36 numpy
37 scipy
38 setuptools
39 setuptools-scm
40 ];
41
42 dependencies = [
43 numpy
44 scipy
45 ];
46
47 nativeCheckInputs = [
48 gstools
49 pytestCheckHook
50 scikit-learn
51 writableTmpDirAsHomeHook
52 ];
53
54 # Requires network access
55 disabledTests = [
56 "test_krige_classification_housing"
57 "test_pseudo_2d"
58 "test_pseudo_3d"
59 "test_krige_housing"
60 ];
61
62 meta = {
63 description = "Kriging Toolkit for Python";
64 homepage = "https://github.com/GeoStat-Framework/PyKrige";
65 changelog = "https://github.com/GeoStat-Framework/PyKrige/blob/v${version}/CHANGELOG.md";
66 license = lib.licenses.bsd3;
67 maintainers = [ lib.maintainers.sikmir ];
68 };
69}