Diff: https://github.com/dolfin-adjoint/pyadjoint/compare/2025.04.1...2025.10.0 ChangeLog: https://github.com/dolfin-adjoint/pyadjoint/releases/tag/2025.10.0
51 lines
914 B
Nix
51 lines
914 B
Nix
{
|
|
lib,
|
|
buildPythonPackage,
|
|
fetchFromGitHub,
|
|
setuptools,
|
|
scipy,
|
|
checkpoint-schedules,
|
|
pytestCheckHook,
|
|
}:
|
|
|
|
buildPythonPackage rec {
|
|
pname = "pyadjoint-ad";
|
|
version = "2025.10.0";
|
|
pyproject = true;
|
|
|
|
src = fetchFromGitHub {
|
|
owner = "dolfin-adjoint";
|
|
repo = "pyadjoint";
|
|
tag = version;
|
|
hash = "sha256-caW2X4q0mHnD8CEh5jjelD4xBth/R/8/P3m0tTeO/LQ=";
|
|
};
|
|
|
|
build-system = [
|
|
setuptools
|
|
];
|
|
|
|
dependencies = [
|
|
scipy
|
|
checkpoint-schedules
|
|
];
|
|
|
|
pythonImportsCheck = [
|
|
"numpy_adjoint"
|
|
"pyadjoint"
|
|
"pyadjoint.optimization"
|
|
];
|
|
|
|
nativeCheckInputs = [ pytestCheckHook ];
|
|
|
|
enabledTestPaths = [
|
|
"tests/pyadjoint"
|
|
];
|
|
|
|
meta = {
|
|
homepage = "https://github.com/dolfin-adjoint/pyadjoint";
|
|
description = "High-level automatic differentiation library";
|
|
license = lib.licenses.lgpl3Only;
|
|
maintainers = with lib.maintainers; [ qbisi ];
|
|
};
|
|
}
|