python312Packages.geotorch: init at 0.3.0

This commit is contained in:
Florian Klink
2025-07-01 00:36:27 +03:00
parent e0142fc574
commit 114fa50a1e
2 changed files with 43 additions and 0 deletions
@@ -0,0 +1,41 @@
{
lib,
buildPythonPackage,
fetchFromGitHub,
setuptools,
torch,
pytestCheckHook,
}:
buildPythonPackage rec {
pname = "geotorch";
version = "0.3.0";
pyproject = true;
src = fetchFromGitHub {
owner = "lezcano";
repo = "geotorch";
tag = version;
hash = "sha256-kkn0PZzQRodXCeX3RcajVvrp1TrhSVgKYwyJGAMuvLM=";
};
build-system = [ setuptools ];
dependencies = [
torch
];
pythonImportsCheck = [ "geotorch" ];
nativeCheckInputs = [
pytestCheckHook
];
meta = {
description = "Constrained optimization toolkit for PyTorch";
homepage = "https://github.com/lezcano/geotorch";
changelog = "https://github.com/lezcano/geotorch/releases/tag/${version}";
license = lib.licenses.mit;
maintainers = with lib.maintainers; [ flokli ];
};
}
+2
View File
@@ -5673,6 +5673,8 @@ self: super: with self; {
georss-wa-dfes-client = callPackage ../development/python-modules/georss-wa-dfes-client { };
geotorch = callPackage ../development/python-modules/geotorch { };
gepetto-gui = toPythonModule (gepetto-viewer.withPlugins [ gepetto-viewer-corba ]);
gepetto-viewer = toPythonModule (pkgs.gepetto-viewer.override { python3Packages = self; });