Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
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 postPatch = '' 35 substituteInPlace pyproject.toml \ 36 --replace-fail "numpy>=2.0.0rc1,<2.3; python_version >= '3.9'" "numpy>=2.0.0"; 37 ''; 38 39 build-system = [ 40 cython 41 numpy 42 scipy 43 setuptools 44 setuptools-scm 45 ]; 46 47 dependencies = [ 48 numpy 49 scipy 50 ]; 51 52 nativeCheckInputs = [ 53 gstools 54 pytestCheckHook 55 scikit-learn 56 writableTmpDirAsHomeHook 57 ]; 58 59 # Requires network access 60 disabledTests = [ 61 "test_krige_classification_housing" 62 "test_pseudo_2d" 63 "test_pseudo_3d" 64 "test_krige_housing" 65 ]; 66 67 meta = { 68 description = "Kriging Toolkit for Python"; 69 homepage = "https://github.com/GeoStat-Framework/PyKrige"; 70 changelog = "https://github.com/GeoStat-Framework/PyKrige/blob/v${version}/CHANGELOG.md"; 71 license = lib.licenses.bsd3; 72 maintainers = [ lib.maintainers.sikmir ]; 73 }; 74}