mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-18 11:40:45 +00:00
Merge pull request #325617 from Sigmanificient/gstools
python312Packages.gstools: init at 1.5.2; python312Packages.hankel: init at 1.2.2; python312Packages.pyevtk: init at 1.2.0
This commit is contained in:
commit
d0c4194f7a
64
pkgs/development/python-modules/gstools/default.nix
Normal file
64
pkgs/development/python-modules/gstools/default.nix
Normal file
|
@ -0,0 +1,64 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
numpy,
|
||||
cython,
|
||||
extension-helpers,
|
||||
hankel,
|
||||
emcee,
|
||||
meshio,
|
||||
pyevtk,
|
||||
scipy,
|
||||
pytestCheckHook,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "gstools";
|
||||
version = "1.6.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "GeoStat-Framework";
|
||||
repo = "GSTools";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-QpdOARzcSRVFl/DbnE2JLBFZmTSh/fBOmzweuf+zfEs=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
numpy
|
||||
cython
|
||||
extension-helpers
|
||||
];
|
||||
|
||||
dependencies = [
|
||||
emcee
|
||||
hankel
|
||||
meshio
|
||||
numpy
|
||||
pyevtk
|
||||
scipy
|
||||
];
|
||||
|
||||
# scipy derivation dont support numpy_2 and is patched to use version 1
|
||||
# Using numpy_2 in the derivation will cause a clojure duplicate error
|
||||
postPatch = ''
|
||||
substituteInPlace pyproject.toml \
|
||||
--replace-fail 'numpy>=2.0.0rc1,' 'numpy' \
|
||||
'';
|
||||
|
||||
pythonImportsCheck = [ "gstools" ];
|
||||
nativeCheckInputs = [ pytestCheckHook ];
|
||||
|
||||
meta = {
|
||||
description = "Geostatistical toolbox";
|
||||
homepage = "https://github.com/GeoStat-Framework/GSTools";
|
||||
changelog = "https://github.com/GeoStat-Framework/GSTools/blob/${src.rev}/CHANGELOG.md";
|
||||
license = lib.licenses.lgpl3Only;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
};
|
||||
}
|
49
pkgs/development/python-modules/hankel/default.nix
Normal file
49
pkgs/development/python-modules/hankel/default.nix
Normal file
|
@ -0,0 +1,49 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
setuptools-scm,
|
||||
mpmath,
|
||||
numpy,
|
||||
scipy,
|
||||
pytestCheckHook,
|
||||
pytest-xdist,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "hankel";
|
||||
version = "1.2.2";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "steven-murray";
|
||||
repo = "hankel";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-/5PvbH8zz2siLS1YJYRSrl/Cpi0WToBu1TJhlek8VEE=";
|
||||
};
|
||||
|
||||
build-system = [
|
||||
setuptools
|
||||
setuptools-scm
|
||||
];
|
||||
dependencies = [
|
||||
mpmath
|
||||
numpy
|
||||
scipy
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "hankel" ];
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-xdist
|
||||
];
|
||||
|
||||
meta = {
|
||||
description = "Implementation of Ogata's (2005) method for Hankel transforms";
|
||||
homepage = "https://github.com/steven-murray/hankel";
|
||||
changelog = "https://github.com/steven-murray/hankel/${src.rev}/CHANGELOG.rst";
|
||||
license = lib.licenses.mit;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
};
|
||||
}
|
45
pkgs/development/python-modules/pyevtk/default.nix
Normal file
45
pkgs/development/python-modules/pyevtk/default.nix
Normal file
|
@ -0,0 +1,45 @@
|
|||
{
|
||||
lib,
|
||||
buildPythonPackage,
|
||||
fetchFromGitHub,
|
||||
setuptools,
|
||||
numpy,
|
||||
pytestCheckHook,
|
||||
pytest-cov,
|
||||
}:
|
||||
|
||||
buildPythonPackage rec {
|
||||
pname = "pyevtk";
|
||||
version = "1.2.0";
|
||||
pyproject = true;
|
||||
|
||||
src = fetchFromGitHub {
|
||||
owner = "pyscience-projects";
|
||||
repo = "pyevtk";
|
||||
rev = "refs/tags/v${version}";
|
||||
hash = "sha256-HrodoVxjREZiutgRJ3ZUrART29+gAZfpR9f4A4SRh4Q=";
|
||||
};
|
||||
|
||||
postPatch = ''
|
||||
substituteInPlace setup.py \
|
||||
--replace-fail 'setup_requires=["pytest-runner"],' 'setup_requires=[],'
|
||||
'';
|
||||
|
||||
build-system = [ setuptools ];
|
||||
dependencies = [ numpy ];
|
||||
|
||||
nativeCheckInputs = [
|
||||
pytestCheckHook
|
||||
pytest-cov
|
||||
];
|
||||
|
||||
pythonImportsCheck = [ "pyevtk" ];
|
||||
|
||||
meta = {
|
||||
description = "Exports data to binary VTK files for visualization/analysis";
|
||||
homepage = "https://github.com/pyscience-projects/pyevtk";
|
||||
changelog = "https://github.com/pyscience-projects/pyevtk/blob/${src.rev}/CHANGES.txt";
|
||||
license = lib.licenses.bsd2;
|
||||
maintainers = with lib.maintainers; [ sigmanificient ];
|
||||
};
|
||||
}
|
|
@ -5331,6 +5331,8 @@ self: super: with self; {
|
|||
inherit (pkgs.buildPackages) meson;
|
||||
};
|
||||
|
||||
gstools = callPackage ../development/python-modules/gstools { };
|
||||
|
||||
gtfs-realtime-bindings = callPackage ../development/python-modules/gtfs-realtime-bindings { };
|
||||
|
||||
gto = callPackage ../development/python-modules/gto { };
|
||||
|
@ -5421,6 +5423,8 @@ self: super: with self; {
|
|||
|
||||
handout = callPackage ../development/python-modules/handout { };
|
||||
|
||||
hankel = callPackage ../development/python-modules/hankel { };
|
||||
|
||||
hap-python = callPackage ../development/python-modules/hap-python { };
|
||||
|
||||
hass-nabucasa = callPackage ../development/python-modules/hass-nabucasa { };
|
||||
|
@ -11268,6 +11272,8 @@ self: super: with self; {
|
|||
|
||||
pyevilgenius = callPackage ../development/python-modules/pyevilgenius { };
|
||||
|
||||
pyevtk = callPackage ../development/python-modules/pyevtk { };
|
||||
|
||||
pyexcel = callPackage ../development/python-modules/pyexcel { };
|
||||
|
||||
pyexcel-io = callPackage ../development/python-modules/pyexcel-io { };
|
||||
|
|
Loading…
Reference in a new issue