python3Packages.gstools: 1.6.1 -> 1.7.0 (#426988)

This commit is contained in:
Pol Dellaiera
2025-07-24 08:11:49 +02:00
committed by GitHub
4 changed files with 88 additions and 14 deletions
@@ -0,0 +1,54 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
cython,
extension-helpers,
numpy,
setuptools,
setuptools-scm,
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "gstools-cython";
version = "1.1.0";
pyproject = true;
src = fetchFromGitHub {
owner = "GeoStat-Framework";
repo = "GSTools-Cython";
tag = "v${version}";
hash = "sha256-Kzn/ThLjTGy3ZYIkTwCV1wi22c7rWo4u/L3llppC6wQ=";
};
build-system = [
cython
extension-helpers
numpy
setuptools
setuptools-scm
];
dependencies = [
numpy
];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
];
pythonImportsCheck = [
"gstools_cython"
];
meta = {
description = "Cython backend for GSTools";
homepage = "https://github.com/GeoStat-Framework/GSTools-Cython";
changelog = "https://github.com/GeoStat-Framework/GSTools-Cython/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ sarahec ];
};
}
@@ -5,44 +5,47 @@
# build-system
cython,
extension-helpers,
numpy,
setuptools,
setuptools-scm,
hatch-vcs,
hatchling,
# dependencies
hankel,
emcee,
gstools-cython,
hankel,
meshio,
numpy,
pyevtk,
scipy,
# optional dependencies
matplotlib,
pyvista,
# tests
pytestCheckHook,
pytest-cov-stub,
}:
buildPythonPackage rec {
pname = "gstools";
version = "1.6.1";
version = "1.7.0";
pyproject = true;
src = fetchFromGitHub {
owner = "GeoStat-Framework";
repo = "GSTools";
tag = "v${version}";
hash = "sha256-Aieuk0Xjlut8rTZoFHcBpPtyIj/fstMrHiiKyDOpQlg=";
hash = "sha256-rQ7mSa1BWAaRiiE6aQD6jl8BktihY9bjFJV+5eT9n/M=";
};
build-system = [
cython
extension-helpers
numpy
setuptools
setuptools-scm
hatch-vcs
hatchling
];
dependencies = [
emcee
gstools-cython
hankel
meshio
numpy
@@ -50,13 +53,23 @@ buildPythonPackage rec {
scipy
];
optional-dependencies = {
plotting = [
matplotlib
pyvista
];
};
pythonImportsCheck = [ "gstools" ];
nativeCheckInputs = [ pytestCheckHook ];
nativeCheckInputs = [
pytestCheckHook
pytest-cov-stub
] ++ lib.flatten (lib.attrValues optional-dependencies);
meta = {
description = "Geostatistical toolbox";
homepage = "https://github.com/GeoStat-Framework/GSTools";
changelog = "https://github.com/GeoStat-Framework/GSTools/blob/v${version}/CHANGELOG.md";
changelog = "https://github.com/GeoStat-Framework/GSTools/blob/${src.tag}/CHANGELOG.md";
license = lib.licenses.lgpl3Only;
maintainers = with lib.maintainers; [ sigmanificient ];
};
@@ -31,6 +31,11 @@ buildPythonPackage rec {
hash = "sha256-9f8SNlt4qiTlXgx2ica9Y8rmnYzQ5VarvFRfoZ9bSsY=";
};
postPatch = ''
substituteInPlace pyproject.toml \
--replace-fail "numpy>=2.0.0rc1,<2.3; python_version >= '3.9'" "numpy>=2.0.0";
'';
build-system = [
cython
numpy
+2
View File
@@ -6294,6 +6294,8 @@ self: super: with self; {
gstools = callPackage ../development/python-modules/gstools { };
gstools-cython = callPackage ../development/python-modules/gstools-cython { };
gtfs-realtime-bindings = callPackage ../development/python-modules/gtfs-realtime-bindings { };
gto = callPackage ../development/python-modules/gto { };